# Education In Pakistan

## VU CS101-INTRODCUTION TO COMPUTING [Session-4] FINAL TERM EXAMINATION SEMESTER FALL 2005

.

FINAL TERM EXAMINATION

SEMESTER FALL 2005

CS101-INTRODCUTION TO COMPUTING [Session-4]

Total Marks:60

Duration: 120 min

Maximum Time Allowed: (2 Hour)

1. This examination is closed book, closed notes, closed neighbors.

a. There is no choice.

b. You will have to answer correctly all questions in this examination to get the maximum

possible marks.

3. 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

b. If you believe that some essential piece of information is missing, make an appropriate

assumption and use it to solve the problem.

4. All Web development questions should be answered using the HTML/JavaScript syntax.

**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.

For Teachers Use Only

Questions Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q9 Total

Marks

Question No: 1

Marks:10

.

Write down the code, to take two input numbers from user (As shown in Fig 5.1 and 5.2), compare them

and show results, whether they are same or not (As shown in fig 5.3). View the given below Image very

carefully and try to fulfill all requirements given in image.

(Hint: Make web page using Use JavaScript to Compare two numbers)

Fig 5.1

Fig 5.2

.

Fig 5.3

Question No: 2

Describe the following terms?

 FTP.

 Telnet Protocol.

Marks:9

Question No: 3

What are local variables? Compare them with global variables?

Question No: 4

Marks:6

Marks:10

Examine the logic of following pseudo code:

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?

Question No: 5

Marks: 10

Write down a JavaScript function with the name “BinConvert( )” that

takes a

decimal number and converts it into its equivalent binary number and

displays

the result in browser. Call that function in the body of the web page.

Question No: 6

What is database? Describe Data Integrity?

Question No: 7

Web server:

Marks: 5

Marks: 2

A.

B.

C.

D.

Is a software to deliver e-mail

Is a computer that store and deliver web pages

Does not allow electronic chatting

Does not have a Domain name

Question No: 8

Ports are:

Marks: 2

A.

B.

C.

D.

Input devices

Output devices

Used to allow I/O devices to communicate with the CPU

Able to process incoming data

Question No: 9

Marks: 2

A.

B.

C.

D.

.

Connection between

two computers

Connection between two countries on the net

Gateway to the next web page

Gateway between five continents

Question No: 10

Vacuum Tubes are:

Marks: 2

A.

B.

C.

D.

Smaller then transistors

Made up of two or more electrodes in a glass metal tube

Used in IBM PC

Invented by Tim Berners lee

Question No: 11

Memory inside a microprocessor is called

Marks: 2

A.

B.

C.

D.

RAM

ROM

Cache

Pre-fetch buffer