Documente Academic
Documente Profesional
Documente Cultură
com
Largest Online Community of VU Students
StudentID/LoginID
Name
PVC Name/Code
Date 17 - 3 - 2006
Please read the following instructions carefully before attempting any question:
**WARNING: Please note that Virtual University takes serious notice of using unfair means.
Anyone found involved in cheating will get `F` grade in this course.
(Hint: Make web page using Use JavaScript to Compare two numbers)
Fig 5.1
Fig 5.2
Fig 5.3
initialize x to 10
initialize y to 0
initialize sum to 0
Repeat while (y <= 6)
{
Add x and y and put results into sum
decrement x by 2
increment y by 3
}
print sum
Stop
What will be the value of the variables “sum, x and y”, each time after the loop
is executed?
A. Input devices
B. Output devices
C. Used to allow I/O devices to communicate with the CPU
D. Able to process incoming data
A. RAM
B. ROM
C. Cache
D. Pre-fetch buffer
WWW. vujannat.ning.COM
www. vujannat.ning.com
Instructions
Please read the following instructions carefully before attempting any question:
**WARNING: Please note that Virtual University takes serious note of unfair
means. Anyone found involved in cheating will get an `F` grade in this course.
Micro controller
How Operating System software does manage a device when a particular application is
executed? Explain with at least one example?
1 www
2 Microsoft
3 microsoft.com
4 http
What do you know about WWW and what are the basic elements of web design?
What do you know about Neural Networks and give any two examples.
Define and explain Greedy Algorithm briefly. You are also required to give key advantage and
an example of Greedy Algorithm.
Determine the correct reserved words of JavaScript from the following list and explain them
briefly.
1 document
2 read
3 alert
4 delete
5 function
6 comment
Question No. 9 Marks : 6
Write function using JavaScript. The name of function will be "display( )". The "display( )"
function will display the following string as shown below:
3 2
X +Y
1 Bouncer
2 Short Pitch
3 Hard
4 Slow
function changeBgcolor()
{
oldColor = window.document.bgColor;
window.document.bgColor = "pink";
window. alert("The old color was " + oldColor);
}
You are required to develop a web page using HTML and JavaScript. First page should take
two inputs as maximum and minimum limit as shown in Fig 1.1. The first input must be
greater than or equal to 1 and the second input must be less than or equal to 6. Minimum
limit should be less than the Maximum limit. Generate Headings by this minimum and
maximum limit as shown in Fig 1.2. The Headings must be generated when Submit button is
clicked.
[Example: Min Limit: 3 and Max Limit: 5, So the heading H3, H4 and H5 will be generated.]
Fig: 1.1
Fig: 1.2
vujannat.ning.com
http://vujannat.ning.com
Largest Online Community of VU Students
FINAL TERM EXAMINATION
Total Marks:60
SEMESTER FALL 2005
CS101-INTRODCUTION TO COMPUTING [Session-3] Duration: 120 min
StudentID/LoginID
Name
PVC Name/Code
Date 17 - 3 - 2006
Please read the following instructions carefully before attempting any question:
**WARNING: Please note that Virtual University takes serious notice of using unfair means.
Anyone found involved in cheating will get `F` grade in this course.
(Hint: Make web page using Use JavaScript to check whether its an even number or odd)
(Fig 5.1)
(Fig 5.2)
A. <P>
B. <A HERF></A>
C. <Title></Title>
D. <BR></BR>
A. Byte
B. Word
C. Bit
D. Hertz
WWW. vujannat.ning.COM Largest
Online Community of VU Students
FINALTERM EXAMINATION
FALL 2006 Marks: 60
CS101 - INTRODUCTION TO COMPUTING Time: 120min
StudentID/LoginID:
Student Name:
Center Name/Code:
Exam Date:
What computer hardware is essential for connecting two computers in Local Area Network?
► Modem
► Ethernet card
► VGA
► Internet Connection
The instruction written in high-level language are converted into low-level language by the
► Operating System
► Compiler
► Parser
► Router
Question No: 3 ( Marks: 1 ) - Please choose one
► Spreadsheets
► Image processor
► Word processor
► None of these
.
► .doc
► .mdb
► .gif
► .tmp
A hardware device that stores data and programs, executes program instructions, and
performs arithmetic/logic operations is known as the .
► CPU
► Integrated Circuit
► Main Storage
► Memory
The input device that reads printed characters, symbols, or graphical images into the
computer is the:
► Sensors
► Speech recognition
► Mouse.
► Scanner
The component of the central processing unit that holds instructions, stores data and keeps
results during the processing is called the:
► Arithmetic/Logic unit.
► Control unit.
► Main memory.
► Web browser
► Mail Binder
► E-mail Handler
► E-mail Client
A computer virus is a
► Application software that helps to make different type of viruses and worms
1- SMTP
2- POP3
3- VoIP
4- DNS
5- RDBMS
b) What will be the outcome of the JavaScript function in the program? Also write comments
where you find “//” symbol from the following given chunk of code. (Marks: 5)
<HTML>
<HEAD>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
function sqnum() //
{
document.square.res.value = document.square.num.value * document.square.num.value
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="square">
Enter Number
<INPUT TYPE=TEXT NAME="num" ONKEYUP="sqnum()"> //
<BR><BR>Square
<INPUT TYPE=TEXT NAME="res" DISABLED> //
</FORM>
</BODY>
</HTML>
What is the difference between Microprocessor and Micro-controller? Give at least three
differences.
1. Word Processor
2. Spreadsheet Software
3. Presentation software
4. Database software
5. Antivirus-software
6. Email Program
7. Search Engines
8. IP Address
What is Network Topology? Discuss advantages and disadvantages of the following network
design topologies with the help of diagram.
1- Bus Topology
2- Star Topology
a) Firewall
b) Artificial Neural Network
c) Animation
d) Denial of Service (DoS )
WWW. vujannat.ning.COM
WWW. vujannat.ning.COM Connecting
VU Students
FINALTERM EXAMINATION
FALL 2007 Marks: 45
CS101 - INTRODUCTION TO COMPUTING (Session - 7 Time: 150min
)
StudentID/LoginID:
Student Name:
Center Name/Code:
Please read the following instructions carefully before attempting any of the
questions:
**WARNING: Please note that Virtual University takes serious note of unfair means. Anyone
found involved in cheating will get an `F` grade in this course.
► 23
► -23
► 23.0
► 2.3
► Sub-program
► Procedure
► Sub-routine
URL is a/an .
► Device
► Component
► Address
► Tool
► Copy
► Delete
► Cut
► Undo
What are the Key Characteristics of Internet? Write any five of them.(2+2+2+2+2)
Can a human doctor be replaced by an Expert System? Give reasons to support your answer. (2+6)
WWW.vujannat.ning.com
o www
o smtp
o ftp
o http
o while{a<=b}
o while{a<=b};
o while(a<=b);
o while(a<=b)
You are required to develop a web page using HTML and JavaScript. Page
should have 4 buttons. Three buttons have different color(Red,Green,Blue).
Fourth button is u sed as "Refresh" button. Finally the page should be
represented as given in Fig.
Develop a function in JavaScript that changes the color of the back ground
according to the button clicked. "Refresh" buttons is use to reset the color
of page.Hint: Refresh button is used to set the background color of the page
to white.
[Example: When Green button is clicked the back ground color will be set to
"Green" and so on.]
Question No. 5 Marks : 02
Examine and write down the value printed after execution of following
statements.
5. document.write( 2 + 3 ) ;
o Application Interface
o File System
o Device Driver
o Kernel
Question No. 7 Marks : 02
o virtual university
o Virtual University
o Virtual university
o VIRTUAL UNIVERSITY]
StudentID/LoginID:
Student Name:
Center Name/Code:
Which of the following words can’t be used for naming an identifier in JavaScript?
► struct
► plugin
► parent
► package
► Data entry
► Data updates
► Data integrity
► Data security
► Data presentation
► The value of a variable can not be changed during execution of the script.
► The untyped feature makes JavaScript simpler to program in when developing short
programs.
► The untyped feature makes JavaScript simpler to program in when developing big
programs.
What kind of operations take place inside Microprocessors Building Blocks? Enlist them with brief
description.
Is there any way to call multiple functions with a single event in JavaScript? Give an example.
What will be the output of this programme? Write comments where you find “//” symbol in the
following code.
<html>
<head>
<script language="JavaScript">
function doSomething() { // 1
setTimeout('doSomething()',10000); // 2
}
</script>
</head>
<body onLoad="doSomething()"> // 3
document.write(“Virtual University of Pakistan”);
</body>
</html>
a) How Trojan Horses and Worms affect a computer system? What guidelines should be adopted
to troubleshoot with malicious softwares? (6 marks)
StudentID/LoginID:
Student Name:
Center Name/Code:
Please read the following instructions carefully before attempting any of the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination from
anyone.
a. If you think that there is something wrong with any of the questions,
attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing, make
an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
**WARNING: Please note that Virtual University takes serious note of unfair
means. Anyone found involved in cheating will get an `F` grade in this course.
► Numbers
► Text
► Formulas
An algorithm that always takes the best immediate or local solution while finding an answer is
called .
► Deterministic Algorithm
► Greedy Algorithm
► Randomized Algorithm
Which of the following command allows you to recover form mistakes in MS Word?
► Clear
► Edit
► Undo
► Break
► Single user
► Multi- user
► Single tasking
► Multi tasking
Question No: 5 ( Marks: 1 ) - Please choose one
► Input
► Output
► Input/Output
► Storage
► 7
► 8
► 9
► 10
► MS Excel
► Oracle
► SQL Server
Question No: 8 ( Marks: 1 ) - Please choose one
A computer virus is a
► Application software that helps to make different type of viruses and worms
► 23
► -23
► 23.0
► 2.3
Question No: 10 ( Marks: 1 ) - Please choose one
A Special program required to view swf (Shockwave Flash) files in web Browser is called
► TFlash
► Vflash
► plug-in
(c) What is a Relational Database? Give the names of any three RDBMS softwares?
b) Spread Sheet
c) Network Topology
d) SMTP
(a) What is the difference between High level and Low level programming languages?
(Marks: 4)
(b)What are the following abbreviations stands for
(Marks: 3)
1- VoIP
2- DNS
3- DOS
a) Develop a Web page that prompts the user to enter a name and then print that name five
times by using loop. A sample is shown in the figures below.
(Marks: 6)
b) Write down the JavaScript function that is equivalent to the following HTML code?
(Marks: 3)
<FONT color=”blue”>
…
</FONT>
<PRE> … </PRE>
vujannat.ning.com
Instructions
Please read the following instructions carefully before attempting any question:
**WARNING: Please note that Virtual University takes serious notice of using
unfair means. Anyone found involved in cheating will get `F` grade in this course.
WYSIWYG is:
1 Software
2 The abbreviation of "what you see is what you get"
3 A Network company in Japan
4 The abbreviation of "word you see is what you get"
Write down code for drop down list having options Cricket, Hockey and Soccer.
What are the basic steps to write pseudo code? Write any four.
a) Make truth table for the following Boolean expression z=(x XOR y).y'
b) Convert 1011 binary number to equivalent decimal number. Show each step of
Conversion.
1 Charles Babbage
2 Alfred Tennyson
3 Ada Lovelace
4 Bernoulli
a) Take a look at the image of the browser screen s hown below. Write down the HTML code
that will produce this screen. View the given below Image very carefully and try to fulfill
all requirements given in image.
b) Write down a function in JavaScript that compares two inputs taken from HTML Form
shown above and as a result display any one of the following message:
"First number is greater than the second" OR "Second number is greater than the first".
Question No. 12 Marks : 2
StudentID/LoginID
Name
PVC Name/Code
Date 16 - 1 - 2006
Please read the following instructions carefully before attempting any question:
**WARNING: Please note that Virtual University takes serious notice of using unfair means.
Anyone found involved in cheating will get `F` grade in this course.
Question No: 1 Marks:14
You are required to develop a web page using HTML and JavaScript. The first page contains a button as
shown in fig1.1. When the button is clicked an input prompt is opened as shown in fig 1.2. By using java
script show either the input value is a binary number or not as shown in fig 1.3.
Fig 1.1
Fig 1.2
Fig 1.3
1. Compiler
2. Interpreter
3. Device Driver
4. None of above.
1. Repeater
2. Firewall
3. Encryption
4. Hub
function changeBgcolor() {
oldColor = window.document.bgColor;
window.document.bgColor = “pink”;
window. alert("The old color was " + oldColor);
}
1. Data Integrity
2. Data Accessibility
3. Data Security
4. Data Entry
1. Nibble
2. Byte
3. Word
4. Double-Word
WWW. vujannat.ning.COM
WWW. vujannat.ning.com
http:// vujannat.ning.com
Largest Online Community of VU Students
MIDTERM EXAMINATION
FALL 2006 Marks: 40
CS101 - INTRODUCTION TO COMPUTING Time: 60min
StudentID/LoginID:
Student Name:
Center Name/Code:
Exam Date:
Please read the following instructions carefully before attempting any of the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination from
anyone.
a. If you think that there is something wrong with any of the questions,
attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing, make
an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
**WARNING: Please note that Virtual University takes serious note of unfair
means. Anyone found involved in cheating will get an `F` grade in this course.
► Voice.
► Images.
► None of these
Software is
What is internet?
► A group of users
► Device driver
► Word processor
► Motherboard
► Slots
► Processor
► Power supply
a) Convert the following numbers from decimal numbers into binary numbers:
(Marks: 6)
1. 24
Answer =
2. 55
Answer =
3. 84
Answer =
b) X, Y is Boolean variables. Determine the truth tables for the following combinations:
(X . Y)’
(Marks: 6)
b) Write an Algorithm to compute the final price of the item. It will ask two inputs from the
user i.e. Price of item and the sales tax rate. You have to calculate the final price of the item.
The formulas for calculating the sales tax and final price are as follows:
Sales tax = (price of item) * (sales tax rate)
Final price = (price of item) + (sales tax)
(Marks: 6 )
Write the HTML code that will generate the similar page as shown below. You have to put
the form elements with in the table.
WWW. vujannat.ning.COM
vujannat.ning.COM
Connecting VU Students
MIDTERM EXAMINATION
StudentID/LoginID:
Student Name:
Center Name/Code:
Please read the foll owing instructions carefully before attempting any of the questions:
**WARNING: Please note that Virtual University takes serious note of unfair means. Anyone found
involved in cheating will get an `F` grade in this course.
► underline text
► Component
► Tool
► None of these
► Device
Question No: 3 ( Marks: 1 ) - Please choose one
► RAM
► ROM
► Hard Disk
► CD ROM
Question No: 4 ( Marks: 1 ) - Please choose one
► None of these
► Edit
► Undo
► Break
Question No: 6 ( Marks: 8 )
What makes System Software different from Application software? Explain the attributes of
good application software. Please write down the concise and to the point answer.(4+4)
Draw the OS components diagram? What are the main responsibilities that Kernel plays in
Operating system? Please write down in 6-7 lines max.(3 + 4)
How you can enhance the capability of a micro processor? Write down the answer in
maximum 5-6 lines
Create the following page using html and javascript as shown in the image below. If someone
press “Ok” (submit) button without entering “age”, it should show a message “Please enter
your age”.
StudentID/LoginID:
Student Name:
Center Name/Code:
Please read the following instructions carefully before attempting any of the questions:
**WARNING: Please note that Virtual University takes serious note of unfair means. An yone found
involved in cheating will get an `F` grade in this course.
► underline text
► Component
► Tool
► None of these
► Device
Question No: 3 ( Marks: 1 ) - Please choose one
► RAM
► ROM
► Hard Disk
► CD ROM
Question No: 4 ( Marks: 1 ) - Please choose one
► None of these
► Clear
► Edit
► Undo
WWW. vujannat.ning.COM
► Break
Question No: 6 ( Marks: 8 )
What makes System Software different from Application software? Explain the attributes of
good application software. Please write down the concise and to the point answer.(4+4)
Draw the OS components diagram? What are the main responsibilities that Kernel plays in
Operating system? Please write down in 6-7 lines max.(3 + 4)
How you can enhance the capability of a micro processor? Write down the answer in
maximum 5-6 lines
Create the following page using html and javascript as shown in the image below. If someone
press “Ok” (submit) button without entering “age”, it should show a message “Please enter
your age”.
vujannat.ning.com
Please read the following instructions carefully before attempting any of the questions:
1. The duration of this examination is 1.5 hours.
2. This examination is closed book, closed notes, closed neighbors; any one found cheating
will get zero grade in the course CS101 Introduction to Computing.
3. Answer all questions.
a. There is no choice.
b. You will have to correctly answer all questions in this examination to receive the
maximum possible marks.
4. Unless stated otherwise, all questions carry two marks. Each MCQ has 5 choices.
5. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt it to
the best of your understanding.
b. If you believe that some essential piece of information is missing, make an
appropriate assumption and use it to solve the problem.
6. Most, but not all, of the examination consists of multiple-choice questions. Choose only
one choice as your answer.
a. If you believe that two (or more) of the choices are the correct ones for a
particular question, choose the best one.
b. On the other hand, if you believe that all of the choices provided for a particular
question are the wrong ones, select the one that appears to you as being the least
wrong.
7. All Web development questions should be answered using the HTML syntax.
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 2 of 7
Total Questions 25
Q.No 1
An object can be defined as
o Collection of integers and floats
o Collection o of integers and properties
o Collection of While loops and variables
o Collection of properties and methods
o Combination of sequential and conditional structures
Q.No 2
During the integration and testing phase of software development life cycle
o User documents the work that he thinks the system does
o Developer analyzes user's requirements, and perform further
investigation to write the specifications for the system
o Bring the subsystem together to form the systems and test them
o Detailed plan specifying the required resources and expected
deliverables
o Providing the feasibility of the system
Q.No 3
The advantage of client side scripting is
o All browsers support it
o Decreases the complexity of web page
o Reduces network traffic
o Increases server load
o User cannot see your code
Q.No 4
Spreadsheet software
o Is the replacement of ledgers
o Is a replacement of encyclopedia
o Are not used for business calculations and charts
o Is a sub category of science, engineering and graphics software
o Is a sub category of entertainment software.
Q.No 5
Decision support systems are sometimes called
o ERP
o Document-centered computing
o E-commerce software
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 3 of 7
o Electronic Encyclopedia
o Expert Systems
Q.No 6
ASP script is
o A data base management system
o Not a server side script
o Linux based server script
o Window based server script
o Unix based server script
Q.No 7
Software that directly interact with the user is called
o System software
o Application software
o Low level languages
o Machine language
o Compilers
Q.No 8
In the AND operation output is true if
o All input variables have true state
o Some of the input variables have true state
o None of the input variables have true state
o All the input variables have false state
o Only one of the input has false state
Q.No 9
Semantic web pages
o Are also called static web pages
o Are not understood by computers
o Are understood by computers
o Are not the extension of today's web pages
o Correct the semantics of the web page
Q.No 10
Two major types of software are
o Application Software, System Software
o Application Software , Database Software
o System Software , Database Software
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 4 of 7
Q.No 11
Language that is understood by computer hardware is called
o High level language
o Firmware
o Machine language
o Assembly language
o System software
Q.No 12
Microprocessor are made up of semiconductor material called
o Aluminum
o Copper
o Ferrous oxide
o Silicon
o Silicon dioxide
Q.No 13
The following code will
<Html><HEAD>
<TITLE>
My new Web Page
</TITLE>
</HEAD></Html>
Q.No 14
In an HTML file, it is essential to have
o <Head> tag
o </Body> tag
o <Body> tag
o <B> tag
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 5 of 7
o None of above
Q.No 15
A unique identifier for the location of a specific Web page is called a
o FTP
o FAQ
o URL
o http://
o IRC
Q.No 16
Search engines
o Cannot search the entire web
o Are built to facilitate the scientists
o Make the list of images that are available on the net
o Search the news groups for the required information
o Scan the entire web for the desired information
Q.No 17
A web site
o Does not have a unique identifier
o Is accessible to limited user
o Is a collection of related documents on the internet
o Is a place where we can only read information on the internet
o Is a place on the net where we can only write information
Q.No 18
Vacuum Tubes are
o Smaller then transistors
o Developed for military applications
o Made up of two or more electrodes in a glass metal tube
o Used in IBM PC
o Invented by Tim Burners lee
Q.No 19
BASIC stands for
o Basic American Standard Information Code
o Beginners All purpose Symbolic Instruction Code
o Brother and Sisters In Christ
o British American Scientific International Commercial
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 6 of 7
Q.No 20
JavaScript
Q.No 21
World's first program was written by
o Charles Babbage
o Alfred Tennyson
o Ada Lovelace
o Bernouli
o Newton
Q.No 22
What would be the output of the following Pseudo Code? (3 Marks)
Start
Initialize x to 4
Initialize y to 1
Initialize Result to 0
While (y<=x)
Result=x+y
Y=y+1
Loop
Print Result
End
o 4
o 8
o 10
o 1
o None of the above
WWW.vujannat.ning.COM
CS101 Introduction to Computing Page 7 of 7
Q.No 23
Convert binary number 100100 into equivalent Decimal number. (5 Marks)
Q.No 24
Write the truth table for Boolean Expression. (5 Marks)
Z= x + (x. y)'
Q.No 25
Take a look at the image of the browser screen shown below. Write down the
HTML code that will produce this screen. (15 Marks)
WWW. vujannat.ning.COM
Connecting VU
Students
FINALTERM EXAMINATION
SPRING 2006 Marks: 50
CS101 - INTRODUCTION TO COMPUTING (Session - 1 Time: 120min
)
StudentID/LoginID:
Student Name:
Center Name/Code:
Which of the following file operations JavaScript can perform on a client computer?
WWW. vujannat.ning.COM
Connecting VU
Students
► Read
► Modify
► Arithmetic
► Delete
► Create
► Numbers
► Text
► Formulas
► Images
Suppose that we have two Local Area Networks working on differe nt communication protocols. What
is the right choice to connect them?
► Router
► Bridge
WWW. vujannat.ning.COM
Connecting VU
Students
► Gateway
► Modem
Which of the following words can’t be used for naming an identifier in JavaScript?
► struct
► plugin
► parent
► package
a) Classify computer networks according to the network access policy. Write in brief. (5 marks)
b) How DBMS ensures the Security and Integrity of data contained in database? (5 marks)
Explain scope of local and global variables in relation to functions in JavaScript? Give an example
of each.
b) How you can justify that a DBMS is better to use than Flat-file database? (5 marks)
What will be the output of this programme? Also write comments where you find “//” symbol in
the following code.
<html>
<head>
<script language="JavaScript">
function doSomething() { // 1
setTimeout('doSomething()',10000); // 2
}
</script>
</head>
<body onLoad="doSomething()"> // 3
document.write(“Virtual University of Pakistan”);
</body>
</html>
How “Object-Oriented Graphics” and “Raster Scan Graphics” differ from each other? Which type
of graphic files are easy to transfer over web?