0% found this document useful (0 votes)
35 views101 pages

CS101 Solved Finalterm MCQs Subjective by Wajid Ali

Uploaded by

syedkhi92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views101 pages

CS101 Solved Finalterm MCQs Subjective by Wajid Ali

Uploaded by

syedkhi92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 101

COMPOSED AND SOLVED BY…….

WAJID MALIK…

CS101 All Past Solved Final Term Papers in one file (19 Papers)
By

FINALTERM EXAMINATION
Spring 2011
CS101- Introduction to Computing (Session - 2)
Note:- MCQs in Blue are the sure answers and Yellow highlighted are Quarantined
ExamDate:7/2/2009 12:00:00 AM
Time 120
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
__________ breaks down the message to be sent over the internet into packets.
► FTP
► HTTP
► TCP (page.no.317)
► IP
Question No: 2 ( Marks: 1 ) - Please choose one
A protocol used for receiving email messages is called ____________.
► URL
► Telnet
► POP3 (page.no.213)
► SMTP
1
COMPOSED AND SOLVED BY…….WAJID MALIK…

2
Question No: 3 ( Marks: 1 ) - Please choose one
Aliasing problem can be managed by ____________the size of pixels.
► Reducing (page.no.236)
► Increasing
► Gaining
► Modifying
Question No: 4 ( Marks: 1 ) - Please choose one
Variables allow us to manipulate data through the ___________.
► Actual Value
► Reference (page.no.143)
► Length
► Name
Question No: 5 ( Marks: 1 ) - Please choose one
The __________ reserved word allows a determined action to be taken if the first
condition is false.
► For
► While
► Else
► Switch
COMPOSED AND SOLVED BY…….WAJID MALIK…

3
Question No: 6 ( Marks: 1 ) - Please choose one
ERP is a type of __________________ .

► Entertainment software
► Productivity software

► Business software

► Scientific software

Question No: 7 ( Marks: 1 ) - Please choose one


What is/are the use/uses of Word processor?
► To write a letter
► To write Research paper or report
► To create address labels
► All of the given
Question No: 8 ( Marks: 1 ) - Please choose one
Command that allows you to recover form mistakes is called __________.
► Clear
► Edit
► Undo
► Break
COMPOSED AND SOLVED BY…….WAJID MALIK…

4
Question No: 9 ( Marks: 1 ) - Please choose one
Automatic machines performing various tasks that were previously done by humans,
are called ____________.
► Robotics (page.no.244)
► Computers
► Decision Making Systems
► Autonomous Web Agents
Question No: 10 ( Marks: 1 ) - Please choose one
The ______ is connected to all other modules of the microprocessor.
► Control unit
► Memory unit
► Floating Point unit
► Arithmetic and Logic unit
Question No: 11 ( Marks: 1 ) - Please choose one
Database consisting of two or more related tables, is called _____________.
► Flat file database
► Object oriented database
► Tabular storage database
► Relational database (page.no.263)
COMPOSED AND SOLVED BY…….WAJID MALIK…

5
Question No: 12 ( Marks: 1 ) - Please choose one
_________ can be used for entering, editing, or viewing data, one record at a time.
► Queries
► Forms (page.no.263)
► Reports
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
Distance learning has got a boost due to the ___________.
► Easy communication
► Online interactive contents
► Flexibility
► All of the given options
Question No: 14 ( Marks: 1 ) - Please choose one
____________ DBMS supports data in terabytes.
► Personal
► Desktop
► Enterprise
► Single-user
COMPOSED AND SOLVED BY…….WAJID MALIK…

6
Question No: 15 ( Marks: 1 ) - Please choose one
After the DoS attack in year 2000, Yahoo servers were recovered in __________.
► 1 hour
► 2 hours
► 3 hours
► 4 hours
Question No: 16 ( Marks: 1 ) - Please choose one
When web server is busy it gives the following message to the user :
► Time out
► Waiting
► Server busy
► None of the given options
Question No: 17 ( Marks: 1 ) - Please choose one
To stop industrial espionage, we use__________.
► Private network
► Encryption
► Network sniffer
► All of the given options (page.no.277)
COMPOSED AND SOLVED BY…….WAJID MALIK…

7
Question No: 18 ( Marks: 1 ) - Please choose one
_______________ based communication allows business entities to coordinate the
activities of their globally spread units with greater accuracy.
► Intranet
► Internet
► Home
► LAN
Question No: 19 ( Marks: 1 ) - Please choose one
onAbort , onError are the _______________ of the image object.
► Event Handler (page.no.286)
► Properties
► Methods
► None of the given options
Question No: 20 ( Marks: 1 ) - Please choose one
Processed data is called ________.
► Information
► Data
► Entity
► Attribute
COMPOSED AND SOLVED BY…….WAJID MALIK…

8
Question No: 21 ( Marks: 1 ) - Please choose one
______ is a client program that uses HTTP to make requests to Web servers
throughout the internet on behalf of the user.
► Web Application
► Web Browser (page.no.18)
► Internet Application
► HTML
Question No: 22 ( Marks: 1 ) - Please choose one
_______ consists of cells arranged in rows & columns
► Spreadsheets Software
► Word processor
► Presentation Software
► Microsoft Paint Software
Question No: 23 ( Marks: 1 ) - Please choose one
Flow control constructs in JavaScript includes:
► If-Else
► Loops and If -Else
► Switch and If-Else
► All of the given choices
COMPOSED AND SOLVED BY…….WAJID MALIK…

9
Question No: 24 ( Marks: 1 ) - Please choose one
Which is NOT true for JavaScript variable name ?
► Student
► Roll_no_1111
► For
► _schedule
Question No: 25 ( Marks: 1 ) - Please choose one
In JavaScript, second element of an array has the index:
►2
►0
►1
►3
JavaScript Array Basics
5 May 2008 ... In this tutorial you learn what a JavaScript array is, ... The first element
hasan index of 0, the second element has an index of 1, ...
www.elated.com/articles/javascript-array-basics/ - Cached - Similar -
Question No: 26 ( Marks: 1 ) - Please choose one
Which protocol is used to control other computer from our own computer ?
► FTP
► NNTP
► TELNET (page.no.211)
► None of the given choices
COMPOSED AND SOLVED BY…….WAJID MALIK…

10
Question No: 27 ( Marks: 1 ) - Please choose one
______ occurs when a function calls itself.
► Recursion
► Call by value
► Call by reference
► Parsing
Recursion - Wikipedia, the free encyclopedia
The function calls itself recursively on a smaller version of the input (n - 1) and
multiplies the result of the recursive call by n, until reaching the ...
en.wikipedia.org/wiki/Recursion - Cached - Similar -
Question No: 28 ( Marks: 1 ) - Please choose one
Which function returns a randomly selected floating point number between 0 and 1 ?
► floor(x)
► ceil(x)
► random()
► round(x)
Question No: 29 ( Marks: 1 ) - Please choose one
Using Java Script you can write a character at random location on screen
► By applying randomCh() method
► With the help of String object
► With the help of random character property
► There is no built in approach in Java Script
COMPOSED AND SOLVED BY…….WAJID MALIK…

11
Question No: 30 ( Marks: 1 ) - Please choose one
The most used form tag is the <input> tag.
► True
► False
Question No: 31 ( Marks: 1 )
What are the elements of website design? Any one
Question No: 32 ( Marks: 1 )
What kind of information can be stored in a database ?
Question No: 33 ( Marks: 2 )
What is meant by universal access of internet services ?
Question No: 34 ( Marks: 2 )
What is the database?
Question No: 35 ( Marks: 3 )
The event handler attribute consists of three parts. Write about each of them.
Question No: 36 ( Marks: 3 )
What is difference between Design and System Architecture?
COMPOSED AND SOLVED BY…….WAJID MALIK…

12
Question No: 37 ( Marks: 3 )
What are Trojan Horses ?
Question No: 38 ( Marks: 5 )
Differentiate between For and While loop by writing the syntax of both loops.
Question No: 39 ( Marks: 5 )
Suppose we have a big project. Draw hierarchy of the people involved in the project?
Question No: 40 ( Marks: 10 )
Write down output for the following JavaScript code.
a) <script type="text/javascript">
document.write(Math.sqrt(25)); // output ?
</script>
b) <script type="text/javascript">
document.write(Math.pow(5, 3)); // output ?
</script>
c) <script type="text/javascript">
document.write(Math.min(5, 3)); // output ?
</script>
COMPOSED AND SOLVED BY…….WAJID MALIK…

13
d) <script type="text/javascript">
document.write(Math.max(5, 3)); // output ?
</script>
e) <script type="text/javascript">
document.write(Math.floor(9.87)); // output ?
</script>
Question No: 41 ( Marks: 10 )
Is tabular data storage better than flat file data storage? Justify your answer.
COMPOSED AND SOLVED BY…….WAJID MALIK…

14
FINALTERM EXAMINATION
Spring 2009
CS101- Introduction to Computing (Session - 4)
Note:- MCQs in Blue are sure answers and yellow highlighted are Quarantined
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Which of the following hardware component of a computer can also be called as
engine?
► Bus
► Storage
► Memory
► Processor
Question No: 2 ( Marks: 1 ) - Please choose one
TCP stands for ___________.
► Total communication protocol
► Transmission control protocol (page. no.317)
► Transfer control protocol
► Transfer collection protocol
COMPOSED AND SOLVED BY…….WAJID MALIK…

15
Question No: 3 ( Marks: 1 ) - Please choose one
__________ breaks down the message to be sent over the internet into packets.
► FTP
► HTTP
► TCP (Page.no.317)
► IP
Question No: 4 ( Marks: 1 ) - Please choose one
A variable can be _________ in scope.
► Local
► Global
► Either local or global (page.no.204)
► None of the given options
Question No: 5 ( Marks: 1 ) - Please choose one
A protocol used for receiving email messages is called ____________.
► URL
► Telnet
► POP3
► SMTP (page.no.213)
COMPOSED AND SOLVED BY…….WAJID MALIK…

16
Question No: 6 ( Marks: 1 ) - Please choose one
A function is also called __________.

► Sub-program

► Procedure

► Sub-routine

► All of the given option


Question No: 7 ( Marks: 1 ) - Please choose one
Capturing events and responding to them is called __________.

► Function Handling

► Event Handling (page.no.228)

► Event Procedure

► All of the given option


Question No: 8 ( Marks: 1 ) - Please choose one
Which one of the following is NOT a primary color?
► Red
► Green
► Yellow
► Blue
COMPOSED AND SOLVED BY…….WAJID MALIK…

17
Question No: 9 ( Marks: 1 ) - Please choose one
__________ are those programs in which the flow of the program is determined by
the user's actions (mouse clicks, key presses) or messages from other programs.
► Event called programs
► Event processed programs
► Event driven programs
► Event declared programs
Question No: 10 ( Marks: 1 ) - Please choose one
a = Math.ceil(12.01)
What will be the value of a ?
► 12
► 13
► 12.0
► 13.01
Question No: 11 ( Marks: 1 ) - Please choose one
Event handlers are placed in the ___________ portion of a Web page as attributes in
HTML tags.
► HEAD
► BODY (page.no229)
► SCRIPT
► TITLE
COMPOSED AND SOLVED BY…….WAJID MALIK…

18
Question No: 12 ( Marks: 1 ) - Please choose one
_________ can be used for entering, editing, or viewing data, one record at a time.
► Queries
► Forms (page.no.263)
► Reports
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
random() function returns a randomly-selected, floating-point number between
____________.
► 0 and 1
► 0 and 10
► 0 and -10
► 0 and -1
Question No: 14 ( Marks: 1 ) - Please choose one
The organizations are learning that business can be done in a more effective manner
if emphasis is placed upon ___________.
► Cooperation
► Shared responsibility
► Networking
► All of the given options (page.no.281)
COMPOSED AND SOLVED BY…….WAJID MALIK…

19
Question No: 15 ( Marks: 1 ) - Please choose one
In relational database, data store in the form of _____________.
► Tables (page.no.321)
► Rows
► Columns
► None of the given options
Question No: 16 ( Marks: 1 ) - Please choose one
Spies of one business monitoring the network traffic of their competitors’
___________.
► Industrial Intelligence
► Industrial Espionage (page.no.277)
► Industrial Spying
► Industrial Surveillance
Question No: 17 ( Marks: 1 ) - Please choose one
_____________ waits for some time and then launch a function.
► Timeout( )
► setTimeout( )
(page.no.290)
► setTime( )
► setTimeIn( )
COMPOSED AND SOLVED BY…….WAJID MALIK…

20
Question No: 18 ( Marks: 1 ) - Please choose one
_______________ based communication allows business entities to coordinate the
activities of their globally spread units with greater accuracy.
► Intranet
► Internet (page.no.294)
► Home
► LAN
Question No: 19 ( Marks: 1 ) - Please choose one
The key responsibilities of a project manager is _____________.
► Planning and tracking of the project
► Arranging of the appropriate resources
► Client relationship management
► All of the given options (page.no.296)
Question No: 20 ( Marks: 1 ) - Please choose one
_____________ team consists on the sharpest technical minds in the company.
► Architecture (page.no.302)
► Business Development
► Configuration Management
► Developer
COMPOSED AND SOLVED BY…….WAJID MALIK…

21
Question No: 21 ( Marks: 1 ) - Please choose one
Smart editors can automatically color different parts of statements in different colors
e.g. comments in ____________ color.
► Green
► Grey (page.no.315)
► Blue
► Red
Question No: 22 ( Marks: 1 ) - Please choose one
A collection of data organized in such a way that the computer can quickly search for
a desired data item is known as :
► Retrieving
► Database (page.no.321)
► Information
► DBMS
Question No: 23 ( Marks: 1 ) - Please choose one
Deep Blue was the name of
► computer (page.no.9)
► human
► city
► game
COMPOSED AND SOLVED BY…….WAJID MALIK…

22
Question No: 24 ( Marks: 1 ) - Please choose one
Information available on the web is
► mostly free of cost
► costly
► very cheap
► of no use
Question No: 25 ( Marks: 1 ) - Please choose one
Which one is correct?

► <BODY></BODY>
► <body></body>
► Both <BODY></BODY> and <body></body> ( Ref: As HTML is not case sensitive)
► <BODY/>
Question No: 26 ( Marks: 1 ) - Please choose one
_________ is the best known builder for supercomputers.
► Sun
► Cray Research (page.no.21)
► Microsoft
► Apple
COMPOSED AND SOLVED BY…….WAJID MALIK…

23
Question No: 27 ( Marks: 1 ) - Please choose one
Which one is the example of spreadsheet software ?
► MS Word
► MS PowerPoint
► MS Excel
► MS Access
Question No: 28 ( Marks: 1 ) - Please choose one
Currently the BlueRay DVD can store more than ________ of data.
► 10 GB
► 100 GB
► 50 GB (page.no.305)
► 150 GB
Question No: 29 ( Marks: 1 ) - Please choose one
Blue Pacific is a name of ______ computer.
► Mini
► Desktop
► Micro
► Super (page.no.21)
COMPOSED AND SOLVED BY…….WAJID MALIK…

24
Question No: 30 ( Marks: 1 ) - Please choose one
_________________ are powerful pieces of hardware, but not much useful on their
own.
► Microcontrollers
► Microprocessors (page.no.33)
► Integrated circuits
► Ports
Question No: 31 ( Marks: 1 )
In programming, what is a loop?
In computer science a for loop is a programming language statement which allows
code to be repeatedly executed. A for loop is classified as an iteration statement.
Question No: 32 ( Marks: 1 )
What are the other names of function? Any one.
Routine , procedure , sub prograam
Question No: 33 ( Marks: 2 )
How JavaScript Arrays are heterogeneous ?
Arrays are heterogeneous in java script because at the same time stimultanously
they can hold elements of multiple data types
Question No: 34 ( Marks: 2 )
What is the database?
COMPOSED AND SOLVED BY…….WAJID MALIK…

25
Data base is a collection of organized data in a proper way that computer can quickly
search for any desired data item , its an easy way of allowing of manipulation of
data,they are design in such a way that access to any desired data can be identified
and reached quickly and easy , they are generally consist of collection of interrelated
files
Question No: 35 ( Marks: 3 )
Differentiate between LAN and WAN with one example of each.
Lan is a local area network where as wan is a wide area network
Lan can be used in a specific areas with limited computers where as wan can be
used on computers shared by large distances
For example lan can be used on pc s or an organization located in one building but
wan can be used on large scales like banks all over or in any Large communication
systems
Question No: 36 ( Marks: 3 )
What are Trojan Horses ?
Trojen horses are a kind of cyber crime , they are v harmful to computer because
they are stand alone programme and the look like what they are not like any thing
amusing or not harmless like games..
Question No: 37 ( Marks: 3 )
Elaborate Rester Graphics with examples.
A raster graphics image, digital image, or bitmap, is a data file or structure
representing a generally rectangular grid of pixels, or points of color, on a computer
monitor, paper, or other display device.
To illustrate the matter further - here's the letter "J":
J
COMPOSED AND SOLVED BY…….WAJID MALIK…

26
Look closely at it... Take a magnifying glass to it if you like. You see a "J", the
computer sees something more like this, where '.' represents a zero and 'X'
represents a one:
....X
....X
....X
....X
....X
....X
....X
X...X
X...X
.XXX.
Where you see a zero, the computer instructs its video hardware to paint the current
background color. A one calls for the current foreground color. Yes, it is actually a bit
more complicated, but it all basically boils down to one bit or the other making a
distinction
between the colors of adjacent pixels, which together form an image.
Question No: 38 ( Marks: 5 )
What are the important properties, methods and event handlers of image object?
The primary use of the image object is to download an image into the cache before it
is needed to display , image object can be used to create different kinds of
animations or to display one of several images based on
COMPOSED AND SOLVED BY…….WAJID MALIK…

27
the desired requirement , in java script image object can be used to display the
required pre loaded image
Properties of image object is : height , width ,hspace ,vspace , src , name border etc
Methods :none
Event handlers:on aboart , onload, onerror etc
Question No: 39 ( Marks: 5 )
Write the JavaScript code for the Function SumOddNumbers(maxNumber) that can
add non-negative odd numbers up to maxNumber and return their sum.
Function sum odd numbers(maxnumber){var sum=0;
For(i=0; <maxNumbers;I++)
{
{ if(i / 2 == 1 || i == 1) sum += i; } return sum; }
Question No: 40 ( Marks: 10 )
Write a note on :
· Coding guidelines
· Guidelines for developing short programs.
· Coding guidelines
COMPOSED AND SOLVED BY…….WAJID MALIK…

28
· • Always use semicolons to end statements
· • Indent blocks of code (2 to 5 spaces)
· • Identifiers
· • Use the camel back scheme
· • Variables: nouns
· • Functions: verbs
· • Comment Liberally
· • Make them descriptive but concise
·
Gudelines for developing short programs.
· • Read and understand the problem
· • Do you have all the required data?
· • No: Get it
· • Else assume it. State it explicitly
· • Do the design
Question No: 41 ( Marks: 10 )
write a note on each of the following:
a. Vector or Object-Oriented Graphics:
b. Bit-Mapped or Raster Graphics:
A:In Vector or object oriented graphic everything drawn is treated as object. objects
retain their identity after they are drawon. these objects can later be moved,
stretched, duplicated, deleted,etc. they are resolution independent and have
relatively small file size. the examples are: swf, svg, wmf, ps
COMPOSED AND SOLVED BY…….WAJID MALIK…

29
brass_ibrahim: Vector graphics is the use of geometrical primitives such as points,
lines, curves, and shapes or polygon(s), which are all based on mathematical
equations, to represent images in computer graphics.
brass_ibrahim: The term "vector graphics" is mainly used today in the context of
two-dimensional computer graphics Virtually all modern 3D rendering is done using
extensions of 2D vector graphics techniques .Virtually all modern 3D rendering is
done using extensions of 2D vector graphics techniques
B:Bit-Mapped or Raster Graphics:
Treats everything that is drawn as a bit-map
If an object is drawn on top of another, it is difficult to move just one of them while
leaving the other untouched
Changing the resolution often requires considerable touch-up work
Relatively large file size
Examples: gif, jpg, bmp
masood.tariq: Bit-Mapped or Raster Graphics:
Treats everything that is drawn as a bit-map
If an object is drawn on top of another, it is difficult to move just one of them while
leaving the other untouched
Changing the resolution often requires considerable touch-up work
Relatively large file size
Examples: gif, jpg, bmp
COMPOSED AND SOLVED BY…….WAJID MALIK…

30
FINAL TERM EXAMINATION
SPRING 2007
CS101 - INTRODUCTION TO COMPUTING (Session – 3)
Marks: 60
(Time: 150min)
Question No: 1 ( Marks: 1 ) - Please choose one
In Spreadsheets, you can create a relationship between two cells by using
_________.
► Numbers

► Text

► Formulas

► None of given option


Question No: 2 ( Marks: 1 ) - Please choose one
An algorithm that always takes the best immediate or local solution while
finding an answer is
called____.
► Deterministic Algorithm
► Non deterministic Algorithm

► Greedy Algorithm

► Randomized Algorithm
COMPOSED AND SOLVED BY…….WAJID MALIK…

31
Question No: 3 ( Marks: 1 ) - Please choose one
Which of the following command allows you to recover form mistakes in MS
Word?

► Clear

► Edit

► Undo

► Break
Question No: 4 ( Marks: 1 ) - Please choose one
A ____________ operating system allows many users to
take advantage of the computer's resources,
simultaneously
► Single user

► Multi- user

► Single tasking

► Multi tasking
COMPOSED AND SOLVED BY…….WAJID MALIK…

32
Question No: 5 ( Marks: 1 ) - Please choose one
Network Interface Card is an __________ device
► Input

► Output

► Input/Output

► Storage
Question No: 6 ( Marks: 1 ) - Please choose one

The decimal equivalent of binary 1000 is


►7

►8

►9

► 10
Question No: 7 ( Marks: 1 ) - Please choose one
Which of the following is NOT RDBMS software?
► My Sql

► MS Excel

► Oracle

► SQL Server
COMPOSED AND SOLVED BY…….WAJID MALIK…

33
Question No: 8 ( Marks: 1 ) - Please choose one
A computer virus is a

► Software that saves the computer from being damaged.

► Application software that helps to make different type of viruses and


worms

► Program that spreads itself and destroys other program

► Program that corrects the problems in your computer


Question No: 9 ( Marks: 1 )
What will be the result of a?
a = Math.abs(-23)

► 23

► -23

► 23.0

► 2.3
COMPOSED AND SOLVED BY…….WAJID MALIK…

34
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

► None of the given options


Question No: 11 ( Marks: 8 )
Match the relevant options from the given two columns and write the correct
options in Column 3.
Column 1 Column 2 Column 3
1.F Mainframe A. Network Traffic
Computers controller
2.H Mosaic B. Laptop
3.E Operating System C. Micro Processor
4A Router D. Software Piracy
5. G Spread Sheet E. Windows XP
6.B Mobile Computer F. Enterprise Servers
7.C Intel 4004 G. VisiCalc
8.D Cyber Crime H. Web Browser
COMPOSED AND SOLVED BY…….WAJID MALIK…

35
Question No: 12 ( Marks: 12 )

(a) What is the difference between Wisdom and Heuristic?

(b) Differentiate between Cyber crime and Cyber warfare.

(c) What is a Relational Database? Give the names of any three RDBMS
softwares?
Question No: 13 ( Marks: 8 )
What do you know about the following ? Describe briefly.

a) Enterprise Resource Planning (ERP) Software


b) Spread Sheet

c) Network Topology

d) SMTP
Question No: 14 ( Marks: 10 )
(a) What is the difference between High level and Low level programming languages?
(Marks: 4)
(b)What are the following abbreviations stands for
COMPOSED AND SOLVED BY…….WAJID MALIK…

36
(Marks: 3)
1- VoIP voice over IP
2- DNS Domain Name System
3- DOS disk operating system
(c) Name three operations that you can perform on a database
(Marks: 3)
Question No: 15 ( Marks: 12 )
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.
b) Write down the JavaScript function that is equivalent to the following HTML code?
(Marks: 3)
HTML code JavaScript function
<FONT size=18> fontsize(18)

</FONT>
<FONT color=”blue”> fontcolor(blue)

</FONT>
COMPOSED AND SOLVED BY…….WAJID MALIK…

37
<PRE> … </PRE> fixed()
(c) Suggest any three guidelines to make a website more readable?
(Marks: 3)
COMPOSED AND SOLVED BY…….WAJID MALIK…

38
FINALTERM EXAMINATION
Fall 2008
CS101- Introduction to Computing (Session - 2)
Note:- Yellow highlighted is Quarantine option and Blue is Clear
Question No: 1 ( Marks: 1 ) - Please choose one
Which function returns a randomly selected floating point number between 0 and 1 ?
► floor(x)
► ceil(x)
► random()(Correct)
► round(x)
Question No: 2 ( Marks: 1 ) - Please choose one
Functions are also called:
► Heuristics
► Variables
► Arrays
► Subprograms (Correct)
Question No: 3 ( Marks: 1 ) - Please choose one
In JavaScript, each element of array can store data of type
► A Number
► An Array
► A String variable
► All of the given choices (Correct)
COMPOSED AND SOLVED BY…….WAJID MALIK…

39
Question No: 4 ( Marks: 1 ) - Please choose one
The weaknesses of the computer are:
► Pattern recognition & Storage
► Speed & Innovative ideas
► Pattern recognition & Innovative ideas (Correct)
► Speed & Storage
Question No: 5 ( Marks: 1 ) - Please choose one
Processed data is called ________.
► Information (Correct)
► Data
► Entity
► Attribute
Question No: 6 ( Marks: 1 ) - Please choose one
Many developers write the _________ first and then incrementally convert each line into _________.
► Real code & Pseudo code
► Pseudo code & Real code (Correct)
► Real code & Artificial code
► None of the given options
COMPOSED AND SOLVED BY…….WAJID MALIK…

40
Question No: 7 ( Marks: 1 ) - Please choose one
When we buy a software package, we do not really buy it, we just by a license that allows us to use it, the
___________stays with the maker.
► Agreement
► Ownership (Correct)
► Membership
► Software
Question No: 8 ( Marks: 1 ) - Please choose one
Name, Border, Source are the ____________ of the image object.
► Event Handler
► Properties
► Methods
► None of the given options
Question No: 9 ( Marks: 1 ) - Please choose one
Using smart editors they can automatically color different parts of statements in different colors e.g. HTML
tags in ____________ color.
► Green
► Grey
► Blue (Correct)
► None of the given options
COMPOSED AND SOLVED BY…….WAJID MALIK…

41
Question No: 10 ( Marks: 1 ) - Please choose one
____________ is in Executive team.
► Project Manager
► CEO (Correct) Page no. 296
► Team Lead
► Developer
Question No: 11 ( Marks: 1 ) - Please choose one
Module level design and unit testing the responsibility of _____________.
► Team Lead
► Developer (Correct)
► Project Manager
► Quality Assurance Expert
Question No: 12 ( Marks: 1 ) - Please choose one
_____________ team is responsible for a project after the specification’s stage till the very end.
► Executive
► Architect
► Development (Correct)
► HR
COMPOSED AND SOLVED BY…….WAJID MALIK…

42
Question No: 13 ( Marks: 1 ) - Please choose one
_____________ waits for some time and then launch a function.
► Timeout( )
► setTimeout( ) (Correct)
► setTime( )
► setTimeIn( )
Question No: 14 ( Marks: 1 ) - Please choose one
Which of the following is NOT an event handler for image object?
► onAbort
► onError
► onLoad
► onUser (Correct)
Question No: 15 ( Marks: 1 ) - Please choose one
______________ is a field that uniquely identifies each record stored in a table.
► Composite Key
► Primary key (Correct)
► Foreign key
► None of the given options
Question No: 16 ( Marks: 1 ) - Please choose one
Distance learning has got a boost due to the ___________.
► Easy communication
► Online interactive contents
COMPOSED AND SOLVED BY…….WAJID MALIK…

43
► Flexibility
► All of the given options (Correct)
Question No: 17 ( Marks: 1 ) - Please choose one
By default in a web page Hyper Link for another web page is represented as ________________

► Blue only
► Black and Underlined
► Blue and Bold
► Blue and Underlined (Correct)
Question No: 18 ( Marks: 1 ) - Please choose one
To store rounded number of 8.6 in a variable called "r_number", we write _____________.
► r_number=Maths.round(8.6)
► r_numbers=Maths.rounds(8.6)
► r_number=Math.rounds(8.6)
► r_number=Math.round(8.6) (Correct)
Question No: 19 ( Marks: 1 ) - Please choose one
Which one is the best option for designing a Medical Expert System?
► Rule Based System
► Genetic Algorithm
► Fuzzy Logic
► Neural Network
COMPOSED AND SOLVED BY…….WAJID MALIK…

44
Question No: 20 ( Marks: 1 ) - Please choose one
Variables allow us to manipulate data through the ___________.
► Actual Value
► Reference (Correct)
► Length
► Name
Question No: 21 ( Marks: 1 ) - Please choose one
Which is correct?

► onUnload (Correct) (P.no.245)

► onUnLoad
► onUNLOAD
► All of the above
Question No: 22 ( Marks: 1 ) - Please choose one
Capturing events and responding to them is called __________.

► Function Handling

► Event Handling (Correct)

► Event Procedure

► All of the given option


COMPOSED AND SOLVED BY…….WAJID MALIK…

45
Question No: 23 ( Marks: 1 ) - Please choose one
___________ color should be used in background for a good presentation.

► Light

► Dark (Correct)

► Red

► None of the given options

Question No: 24 ( Marks: 1 ) - Please choose one


Which of the following symbol is used for multiple line comments in JavaScript?
►/
► //
► /* (Correct)
► //*
Question No: 25 ( Marks: 1 ) - Please choose one
In JavaScript, what will be the result of the follwoing operation
79%3
►0
► 1 (Correct)
►2
►3
Explanation:- 79 divided by 3 and remainder is 1
COMPOSED AND SOLVED BY…….WAJID MALIK…

46
Question No: 26 ( Marks: 1 ) - Please choose one
A new cell using HTML is added in table row by
► <TC>…</TC>
► <TR>…</TR>
► <TD>…</TD> (Correct) (P.No.54)
► <NC>…</NC>
Question No: 27 ( Marks: 1 ) - Please choose one
TCP stands for ___________.
► Total communication protocol
► Transmission control protocol (Correct)
► Transfer control protocol
► Transfer collection protocol
Question No: 28 ( Marks: 1 ) - Please choose one
What is NOT a key factor while designing a website?
► Usability
► User-friendly
► Consistency
► Complexity (Correct)
COMPOSED AND SOLVED BY…….WAJID MALIK…

47
Question No: 29 ( Marks: 1 ) - Please choose one
It represents the ________________ flow chart element.

► Process
► Input or Output (correct) P.no.105
► Decision
► Connector
Question No: 30 ( Marks: 1 ) - Please choose one
Vacuum tubes were replaced by ___
► Punch cards
► Transistors (Correct) P.no.14
► Micro Processors
► Resistors
Question No: 31 ( Marks: 1 )
When does recursion occur?
Possible Answer:-
The power of recursion evidently lies in the possibility of defining an infinite set of objects by a finite
statement.
Question No: 32 ( Marks: 1 )
COMPOSED AND SOLVED BY…….WAJID MALIK…

48
What are the types of computer network according to the distance between nodes ?
Answer:
There are two types of networks.
1. LAN (Local Area Network)
2. WAN (Wide Area Network)
Question No: 33 ( Marks: 2 )
What is meant by semantic error ?
Answer:
Occur when a statement executes and has an effect not intended by the programmer and Often
times occur only in unusual & infrequent circumstances
Question No: 34 ( Marks: 2 )
List down the names of two array methods available in JavaScript.
Answer:
1. sort( ) [sorts elements in alphabetical order]
2. reverse( ) [Reverses the order of elements]
Question No: 35 ( Marks: 3 )
COMPOSED AND SOLVED BY…….WAJID MALIK…

49
How can you define a consistent web design? Why is it needed?
Answer:
A consistent good designed website is generated for general public that allows users to attain
what they want as quickly as possible without spending much effort.
A consistent good design assists the user in recovering from errors.
Question No: 36 ( Marks: 3 )
How can we include images in a web page using HTML and Java script?
Answer:
Image in HTML
<IMG src=URL, alt=text height=pixels width=pixels align="bottom|middle|top">
Image in Javascript
Images in JavaScript can be manipulated in many ways using the built-in object Image.
Additional properties to HTML are hspace, vspace & lowsrc.
Example: It can be used by many handlers like, onAbort, onLoad & onError
Question No: 37 ( Marks: 3 )
The event handler attribute consists of three parts. Write about each of them.
Answer :
The identifier of the event handler
The equal sign
COMPOSED AND SOLVED BY…….WAJID MALIK…

50
A string statement enclosed in double or single quotes.
Question No: 38 ( Marks: 5 )
What is a packet in the network environment? What kind of information does it contain?
Answer:
• Packet is data chopped up into pieces in a network environment.
• These packets contain information about which computer sent the data and where the data is
going.
• If a packet runs into a problem during its trip, it can attempt to find another route. When all
the packets get where they are going, the recipient computer puts them together again.

Question No: 39 ( Marks: 5 )


Suppose we have a big project. Draw hierarchy of the people involved in the project?
Answer:
Please ignore small lines relating Sub Teams to subordinates due to shortage of time. ABCD etc
are connected directly to Team Lead 1,2 & 3 accordingly.
Question No: 40 ( Marks: 10 )
Write down HTML and JavaScript code for the following requirements:
Declare an Array with the identifier SUBJECT having length 5. Assign following values to the array
elements:
MIS, Java, Algorithms, Databases, C++
Show all values in reverse order.
COMPOSED AND SOLVED BY…….WAJID MALIK…

51
Question No: 41 ( Marks: 10 )
How instant messaging works? Write the steps involved in this process.
Answer:
The Instant Messaging services available allow us to maintain a list of people (contacts) that we
interact with regularly. We can send instant messages to any of the contacts in our list as long as
that contact is online.
Following steps are involved in IM working.
1. User commences the IM client.
2. IM client finds the IM server & logs in.
3. It launches communication info (IP address, etc) to the IM server.
4. IM server finds user’s contacts & sends him/her the communication info.
5. IM server also notifies the contacts that the user is online; sends his/her communication
info to them.
6. The user’s & the contact’s IM clients are ready to communicate directly (P2P).
7. As new contact has come online, IM server informs them about the user being online & vice
versa.
8. Multiple, real-time chat are possible.
9. When the user logs-off, his/her IM client informs the IM server.
10. IM server wipes away the temporary file and informs the user’s contact’s about his/her
‘offline’ status.
COMPOSED AND SOLVED BY…….WAJID MALIK…

52
FINALTERM EXAMINATION
Spring 2009 Final
CS101- Introduction to Computing (Session - 2)
The transistor is a solid state semiconductor device used for amplification and switching,
and has __________ terminals. ► one ► two ► three ► four Question No: 2 ( Marks: 1 ) -
Please choose one Blue Pacific is a name of _____ computer. ► Mini ► Desktop ► Micro
► Super Question No: 3 ( Marks: 1 ) - Please choose one Monte Carlo algorithm is an
example of __________ ► Randomized algorithm (page.no.102) ► Greedy algorithm ►
both greedy and randomized ► Heuristics Question No: 4 ( Marks: 1 ) - Please choose one
A set of stand alone productivity applications designed to work together known as ______.
► Productivity software suites ► Compiled software ► Secure software ► Intelligent
software
COMPOSED AND SOLVED BY…….WAJID MALIK…

53
Question No: 5 ( Marks: 1 ) - Please choose one The most used form tag is the <input> tag.
► True ► False Question No: 6 ( Marks: 1 ) - Please choose one What is the key feature of
computer which is against human nature.? Can’t get bored. ► Can’t get bored. ► Pattern
recognition ► Repetition ► None Question No: 7 ( Marks: 1 ) - Please choose one _____
was designed as a replacement for typewriter ► Spreadsheet Software ► Word Processor
Software ► Presentation Software ► Database Software Question No: 8 ( Marks: 1 ) -
Please choose one Forms can be submitted by using _________ different methods ► 2 ►
3►4►5
Methods are GET and POST Question No: 9 ( Marks: 1 ) - Please choose one To display a
checkbox on the web page, we use ___ tag ► CHECKBOX ► CHECK ► INPUT ►
INPUTBOX

Checkbox is not not a tag, input is a tag,


Question No: 10 ( Marks: 1 ) - Please choose one _____ attribute of FORM tag is used to
mention a URL when the form is being submitted ► name ► action ► method ► submit
COMPOSED AND SOLVED BY…….WAJID MALIK…

54
► All of the given choices Question No: 11 ( Marks: 1 ) - Please choose one You can
________ from/to a website containing interactive forms. ► Only read ► Only write ►
Read and write ► Not read and write Question No: 12 ( Marks: 1 ) - Please choose one
Using COLSPAN, number of rows of the current cell should extend itself None of the given
choices ► Upward ► Downward (page.no.56) ► Both Upward and Downward ► None of
the given choices Question No: 13 ( Marks: 1 ) - Please choose one ASCII WHITE is the
fastest Super computer which can perform ___ calculations in one second. ► 1.3 billion ►
1.3 trillion ► 1.3 miillion ► 1.3 thousand Question No: 14 ( Marks: 1 ) - Please choose one
____ is a related collection of WWW files that includes a beginning file called a homepage
► HTML ► Website ► HTTP ► Web page Question No: 15 ( Marks: 1 ) - Please choose
one If a computer could pass the Turing test then it would be able to: ► think like human
beings ► do the things faster ► win a million dollar prize ► store more information
Question No: 16 ( Marks: 1 ) - Please choose one The key strengths of computers are - ►
Speed ► Storage ► Do not get bored
COMPOSED AND SOLVED BY…….WAJID MALIK…

55
Question No: 17 ( Marks: 1 ) - Please choose one Compared to vacuum tubes, Transistors
offer: ► Much smaller size ► Better reliability ► Much lower cost ► All of the given
choices Question No: 18 ( Marks: 1 ) - Please choose one Which of the following is NOT a
component of IC? ► Transistors ► Diodes ► Resistors ► Vacuum tubes
Question No: 19 ( Marks: 1 ) - Please choose one When we use <INPUT
type=“password”>, what will happen? ► Text will not be visible ► Text will be in normal
format ► Text will be in **** format ► Text will be in #### format Question No: 20 ( Marks:
1 ) - Please choose one Spread sheet is a type of _ Mathematical software ________. ►
Productivity software ► Engineering software ► Mathematical software ► Business
software Question No: 21 ( Marks: 1 ) - Please choose one Word Processor is a ____
Application Software__ ► System Software ► Application Software ► Device ► Utility
Question No: 22 ( Marks: 1 ) - Please choose one _ Utility Program refers to the firmware
code which is run by an IBM compatible PC when first powered on.
COMPOSED AND SOLVED BY…….WAJID MALIK…

56
► 3 ► DOS ► BIOS ► Utility Program ► None of these Question No: 23 ( Marks: 1 ) -
Please choose one A computer program that facilitates the communication between the
computer and a peripheral device is called____ Language Translator _______ ► Operating
system ► Utilities ► Language Translator ► Device Drives Question No: 24 ( Marks: 1 ) -
Please choose one In JavaScript, what will be the result of the following operation 79%3 ►
0►1►2

If we divide 79 by 3 ,we will get remainder=1 ,


Question No: 25 ( Marks: 1 ) - Please choose one Which of the following number system is
used by microprocessor? ► Binary ► Decimal ► Octal ► Hexadecimal Question No: 26
( Marks: 1 ) - Please choose one Web site is collection of related ______ ► Web pages ►
Information ► Search Engines ► None of the given choices Question No: 27 ( Marks: 1 )
What BIOS stands for? – Binary Input Output System Question No: 28 ( Marks: 1 ) List
down the Analytical Engine's components name (any two) Answer : Google & Netscape,
COMPOSED AND SOLVED BY…….WAJID MALIK…

57
Question No: 29 ( Marks: 2 ) Why uploading a web page is important? Describe in 2 – 3
lines. Answer : By only uploading webpage we could place our information in order the
other can reach up to ready what we load, upload means make available our data or
information for the world web browsers Question No: 30 ( Marks: 3 ) What is the difference
between microprocessors and microcontrollers? Give one example of both. Answer : The
microprocessor is electronic equipment which can perform several function and also
processing of data and information present in a computer, while microcontroller can only
perform one function for that its design Example Microprocessors _ Pentium 4
Microcontroller _ can be a switch in side the washing machine Question No: 31 ( Marks: 5 )
Differentiate uni-Processor OS from Multi-Processor OS. Answer : The Multiprocessors is
when more than one processor is under operation it can be several or may hundreds of the
kind to perform one great operation or calculation, while our PC is a kind of uni-processor
Question No: 32 ( Marks: 5 ) Why do we call JavaScript an Object-based Language?
Answer : Java Script is a language by which we are writing our web-pages, this language is
designed to work for web pages
COMPOSED AND SOLVED BY…….WAJID MALIK…

58
FINALTERM EXAMINATION
Spring 2009 Final
CS101- Introduction to Computing (Session - 2)
Question No: 1 ( Marks: 1 ) - Please choose one
---------- was known as “mill” in Analytical engine.
► Memory
► Processor
► Monitor
► Mouse
Ref: An arithmetical unit (the "mill") would be able to perform all four arithmetic operations,
plus comparisons and optionally square roots. Initially it was conceived as a difference
engine curved back upon itself, in a generally circular layout,[2] with the long store exiting off
to one side.
Question No: 2 ( Marks: 1 ) - Please choose one
First electronic computer was
► ABC ( Page No. 14)
► UNVAC 1
► Harvard Mark 1
► IBM PC
Question No: 3 ( Marks: 1 ) - Please choose one
What is NOT a key factor while designing a website?
► Usability
► User-friendly
► Consistency
► Complexity
Question No: 4 ( Marks: 1 ) - Please choose one
What happens if I start a new list without closing the original one?
► An error will be generated
► A nested list will be created
► Previous list will end and a new will start.
► Nothing will happen
Question No: 5 ( Marks: 1 ) - Please choose one
The most upper right pixel of the screen is of ___________ color.
► Any
► Red
► Green
► Blue
COMPOSED AND SOLVED BY…….WAJID MALIK…

59
Question No: 6 ( Marks: 1 ) - Please choose one
A single pixel can acquire approximately ___________ color schemes.
► 1 million
► 2 million
► 10 million
► 16 million (P.NO.235)
Question No: 7 ( Marks: 1 ) - Please choose one
The idea of Neural Networks field is based upon ______________.
► Human nature
► Human brain
► Human culture
► Human actions
Question No: 8 ( Marks: 1 ) - Please choose one
Which one of the following is an application for artificial intelligence?
► Robotic
► Web Agent
► Decision Support System
► All of the given options
Question No: 9 ( Marks: 1 ) - Please choose one
Register is a kind of ______memory
► Fast
► Super fast
► Slow
► Very slow
Question No: 10 ( Marks: 1 ) - Please choose one
Which of the following is a true statement?
► Flat-file storage is better than tabular storage.
► Tabular storage is better than flat-file storage. (Page. No 257)
► Flat-file storage is better than relational storage.
► None of the given options
Question No: 11 ( Marks: 1 ) - Please choose one
substring(n, m) returns a string containing characters copied from position n
to___________.
►m–2
► m – 1 (Page.no. 270)
►m+1
►m
COMPOSED AND SOLVED BY…….WAJID MALIK…

60
Question No: 12 ( Marks: 1 ) - Please choose one
The __________ is the old profession which is being eliminated because of computing.
► Typist
► Bank manager
► Operational manager
► All of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
The system that manages relational database, is called ______________.
► None of the given options
► Database Management System
► Data Management System
► Relational Database Management System (page.no.274)
Question No: 14 ( Marks: 1 ) - Please choose one
When web server is busy it gives the following message to the user :
► Time out
► Waiting
► Server busy
► None of the given options
Question No: 15 ( Marks: 1 ) - Please choose one
The group of technologies concerned with the capturing, processing and transmission of
information in the digital electronic form is called _____________.
► Telecom Engineering
► Computer Engineering
► Computer Science
► Information Technology (page.no.295)
Question No: 16 ( Marks: 1 ) - Please choose one
_____________ team consists on the sharpest technical minds in the company.
► Architecture (page.no.300)
► Business Development
► Configuration Management
► Developer
Question No: 17 ( Marks: 1 ) - Please choose one
TCP stands for ________.
► Transfer Center protocol
► Transmission Control Protocol (page.no.317)
► Transmission Center Protocol
► Telephone Center Protocol
COMPOSED AND SOLVED BY…….WAJID MALIK…

61
Question No: 18 ( Marks: 1 ) - Please choose one
A collection of data organized in such a way that the computer can quickly search for a
desired data item is known as :
► Retrieving
► Database (page.no.321)
► Information
► DBMS
Question No: 19 ( Marks: 1 ) - Please choose one
Microsoft Word is a type of:
► System Software
► Freeware Software
► Shrink-Wrapped Software (page.no.64)
► Custom-built Software
Question No: 20 ( Marks: 1 ) - Please choose one
Users __________, how things work.
► Analyze in detail
► Muddle through (page.no.170)
► Figure out
► Read in detail
Question No: 21 ( Marks: 1 ) - Please choose one
Popular schemes used for reducing bytes for storage are:
► RGB and Color mapping
► RGB and Dithering
► RGB, Color mapping and Dithering
► Color mapping and Dithering (page.no.235)
Question No: 22 ( Marks: 1 ) - Please choose one
Hardware malfunctions is related to
► Data updates
► Data integrity (page.no.253)
► Data security
► Data accessibility
Question No: 23 ( Marks: 1 ) - Please choose one
If incorrectly we enter the negative age it is check by
► Limit Integrity (page.no.253)
► Type Integrity
► Referential Integrity
► Physical Integrity
Question No: 24 ( Marks: 1 ) - Please choose one
Which is the user-friendly way of presenting data ?
► Query
COMPOSED AND SOLVED BY…….WAJID MALIK…

62
► Form
► Report
► All of the given options
Question No: 25 ( Marks: 1 ) - Please choose one
Currently the BlueRay DVD can store more than ________ of data.
► 10 GB
► 100 GB
► 50 GB (page.no.305)
► 150 GB
Question No: 26 ( Marks: 1 ) - Please choose one
In JavaScript, a || b is interpreted as
► a is true or b is false
► a is true and b is true
► a is false and b is true
► a is true or b is true or both are true (page.no.148)
Question No: 27 ( Marks: 1 ) - Please choose one
Speakers fall into the hardware category.
► True
► False
Question No: 28 ( Marks: 1 ) - Please choose one
onBlur event is occurred for a form element when it ____________

► Gets focus
► Losts focus (page.no.230)
► Some thing is typed in
► onBlur is not an event
Question No: 29 ( Marks: 1 ) - Please choose one
You can view a 3-D image on a _____________.
► 3-D display
► 2-D display
► On both 2-D and 3-D displays
► We can not view a 3-D image
Question No: 30 ( Marks: 1 ) - Please choose one
Module level design and unit testing is the responsibility of _____________.
► Team Lead
► Developer (page.no.298)
► Project Manager
► Quality Assurance Expert
Question No: 31 ( Marks: 1 )
COMPOSED AND SOLVED BY…….WAJID MALIK…

63
What is heuristic?
Common sense Lesson drawn from experience
(Artificial) Intelligent Systems
SW programs or SW/HW systems designed to perform complex tasks employing strategies
that mimic
some aspect of human thought
or
• a commonsense rule (or set of rules) intended to increase the probability of solving
some problem
• of or relating to or using a general formulation that serves to guide investigation

Question No: 32 ( Marks: 1 )


In programming, what is an object ?
Object: A named collection of properties (data, state) & methods (instructions, behavior)
Question No: 33 ( Marks: 2 )
What is spreadsheet? List any two jobs that it can do.
A spreadsheet is a grid that organizes data into columns and rows. Spreadsheets make it
easy to display
information, and people can insert formulas to work with the data.
Electronic replacement for ledgers
Charts
financial-forecasting
Question No: 34 ( Marks: 2 )
In JavaScript, what is event handling? What are the two types of events?
Capturing events and responding to them
The system sends events to the program and the program responds to them as they arrive
Events can include things a user does - like clicking the mouse - or things that the system
itself does -
like updating the clock.
Question No: 35 ( Marks: 3 )
Explain how many ways businesses monitor their employees?
COMPOSED AND SOLVED BY…….WAJID MALIK…

64
• Systems are available that monitor almost every key stroke that an employee makes on a
computer
• Systems are available that read and censor all incoming and outgoing eMail
• It is quite straight forward to monitor where you surf, and when
Question No: 36 ( Marks: 3 )
What is difference between Design and System Architecture?
Only the higher level designs are called System Architecture and lower level designs
can not be called system Architecture, and we can also say the every Architecture
can be called design but every design can not be called Architecture. (For Reference
Listen Lecture No.24)
Question No: 37 ( Marks: 3 )
What are the Sub categories of Artificial Intelligence? Briefly explain any two.
Expert systems
Systems that, in some limited sense, can replace an expert
Robotics
Automatic machines that perform various tasks that were previously done by humans
Example:
Pilot-less combat air planes
Decision Support Systems:
Interactive software designed to improve the decision-making capability of their users
Utilize historical data, models to solve problems
Question No: 38 ( Marks: 5 )
How many ways are there to call a function in a program ? Explain with example
Functions do not run automatically. When the page loads, each function waits quietly until it
is told to run
Calling a Function From an Event Handler
An event handler is a command which calls a function when an event
happens, such as the user clicking a button.
The command is written in the format onEvent, where Event is the name
for a specific action. Here are some common examples:
Calling a Function From Another Function
function doSomething() {
doSomethingElse(); // This line calls the next function
}
COMPOSED AND SOLVED BY…….WAJID MALIK…

65
Question No: 39 ( Marks: 5 )
Elaborate the ‘+ ’ operator and its constraints with the help of examples
The “+” String Operator
The “+” operator can be used to concatenate two strings
title = “bhola” + “continental”
The value of the variable title becomes “bholacontinental”
Question No: 40 ( Marks: 10 )
Write a JavaScript program having two functions sum and mean.
The web page will ask the user to enter five values to be added.
After taking input it will calculate the sum and mean of those values by calling sum
and mean functions.
Question No: 41 ( Marks: 10 )
Define the following terms.
Object
A named collection of properties(data, state) & methods (instructions, behavior)
Event Handler
An event handler is a command which calls a function when an event
happens, such as the user clicking a button
Local Variable
Declaring variables (using the var keyword) within a function, makes them local•They
are available only
within the function and hold no meaning outside of it
Scope of Variable
Defining the space in which a variable is effective is known as
defining the scope of a variable. A variable can be either local or global in scope
Array
An indexed list of elements
COMPOSED AND SOLVED BY…….WAJID MALIK…

66
FINALTERM EXAMINATION
Fall 2009
CS101- Introduction to Computing (Session - 3)
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
First computer network was ___________.
► NSFNET
► FIRSTNET
► ARPANET
► ORPHANET
Question No: 2 ( Marks: 1 ) - Please choose one
In a good presentation each slide should contain____________.

► Heading

► Phrases not sentences

► Sentences not phrases

► Heading, sentences not phrases


Question No: 3 ( Marks: 1 ) - Please choose one
A function is also called __________.

► Sub-program

► Procedure
COMPOSED AND SOLVED BY…….WAJID MALIK…

67
► Sub-routine

► All of the given option


Question No: 4 ( Marks: 1 ) - Please choose one
A single pixel can acquire approximately ___________ color schemes.
► 1 million
► 2 million
► 10 million
► 16 million
Question No: 5 ( Marks: 1 ) - Please choose one
Which of the following is NOT a Loop statement?
► For
► While
► Switch
► Do-While
Question No: 6 ( Marks: 1 ) - Please choose one
Which one of the following is NOT a component of Rule Based System?
► Rule Compiler
► Rule Interpreter
► Rules Base
► Working Memory
COMPOSED AND SOLVED BY…….WAJID MALIK…

68
http://vustudents.ning
Question No: 7 ( Marks: 1 ) - Please choose one
Spread sheet is a type of _______________.

► Productivity software

► Engineering software

► Mathematical software

► Business software

Question No: 8 ( Marks: 1 ) - Please choose one


A combination of word processing and graphic design is
► Corel Draw
► Desktop Publishing
► Paint
► WordPad
Question No: 9 ( Marks: 1 ) - Please choose one
To store rounded number of 8.6 in a variable called "r_number", we write _____________.
► r_numbers=Maths.rounds(8.6)
► r_number=Math.rounds(8.6)
► r_number=Math.round(8.6)
► r_number=Maths.round(8.6)
COMPOSED AND SOLVED BY…….WAJID MALIK…

69
Question No: 10 ( Marks: 1 ) - Please choose one
Which of the following is a true statement?
► Flat-file storage is better than tabular storage.
► Tabular storage is better than flat-file storage.
► Flat-file storage is better than relational storage.
► None of the given options
Question No: 11 ( Marks: 1 ) - Please choose one
The political process is also influenced by the use of ___________.
► Discussion forums
► Newsgroups
► Mailing lists
► All of the given options http://vustudents.ning
Question No: 12 ( Marks: 1 ) - Please choose one
The system that manages relational database, is called ______________.
► None of the given options
► Database Management System
► Data Management System
► Relational Database Management System
COMPOSED AND SOLVED BY…….WAJID MALIK…

70
Question No: 13 ( Marks: 1 ) - Please choose one
____________ DBMS supports data in terabytes.
► Personal
► Desktop
► Enterprise
► Single-user
Question No: 14 ( Marks: 1 ) - Please choose one
Trinoo is a __________ software.
► DoS
► Scanning
► Utility
► None of the given options
Question No: 15 ( Marks: 1 ) - Please choose one
What is the major problem with flash based website?
► Its two heavy
► Cannot be indexed
► Less attractive
► Inaccessible
COMPOSED AND SOLVED BY…….WAJID MALIK…

71
Question No: 16 ( Marks: 1 ) - Please choose one
The organization is the collection of ____________.
► Peoples
► Professionals
► Teams
► Individuals
Question No: 17 ( Marks: 1 ) - Please choose one
The tasks performed to determine the existence of defects is called _______
► Debugging
► Testing
► Repairing
► Coding
Question No: 18 ( Marks: 1 ) - Please choose one
Many developers write the _________ first and then incrementally convert each line into
_________.
► Real code & Pseudo code
► Pseudo code & Real code
► Real code & Artificial code
► None of the given options
COMPOSED AND SOLVED BY…….WAJID MALIK…

72
Question No: 19 ( Marks: 1 ) - Please choose one
Forms can be submitted through _______ & _______ methods
► INCLUDE, POST
► INCLUDE, GET
► GET, POST
► SEND, POST
Question No: 20 ( Marks: 1 ) - Please choose one
If an algorithm is syntactically correct, but semantically incorrect then this situation is
► Very good situation
► Very dangerous situation
► Not very bad
► Neutral situation
Question No: 21 ( Marks: 1 ) - Please choose one
Heuristics _______ lead to the best results.
► Sometimes
► Do not
► Occasionally
► Not always http://vustudents.ning
COMPOSED AND SOLVED BY…….WAJID MALIK…

73
Question No: 22 ( Marks: 1 ) - Please choose one
In TCPIP communication fragmentation is responsibility of
► TCP
► IP
► Both TCP and IP
► Internet
Question No: 23 ( Marks: 1 ) - Please choose one
Access to the internet became easy after the invention of
► WWW & Web Browsers
► Mainframes
► Binary system
► Signals
Question No: 24 ( Marks: 1 ) - Please choose one
Which one is the example of spreadsheet software ?
► MS Word
► MS PowerPoint
► MS Excel
► MS Access
Question No: 25 ( Marks: 1 ) - Please choose one
User can remotely log on to a computer and can have a control over it like a local user
using
COMPOSED AND SOLVED BY…….WAJID MALIK…

74
► TelNet Protocol
► TelNet Protocol and connected to the user through TCP/IP network
► TelNet protocol and FTP
► TCP/IP and FTP
Question No: 26 ( Marks: 1 ) - Please choose one
If incorrectly we enter the negative age it is check by
► Limit Integrity
► Type Integrity
► Referential Integrity
► Physical Integrity
Question No: 27 ( Marks: 1 ) - Please choose one
------------------ is a digital programmable mechanical machine
► Analytical Engine
► Difference Engine
► Harvard Mark 1
► Mechanical engine
Question No: 28 ( Marks: 1 ) - Please choose one
This element of Flow Chart is called_____________.
► Process
► Off page connector
COMPOSED AND SOLVED BY…….WAJID MALIK…

75
► Decision
► Connector
Question No: 29 ( Marks: 1 ) - Please choose one
In a library’s database, if there is an entry in the register for Book # 423 then the
corresponding Book must actually exist; is an example of which type of data integrity:
► Type integrity
► Limit integrity
► Physical Integrity
► Referential Integrity
Question No: 30 ( Marks: 1 ) - Please choose one
Ada is a programming language specifically designed for
► Analytical Engine
► Difference Engine
► Harvard Mark 1
► Mechanical engine
Question No: 31 ( Marks: 1 )
What are the elements of website design? Any one
Question No: 32 ( Marks: 1 )
What does TCP/IP stand for?
COMPOSED AND SOLVED BY…….WAJID MALIK…

76
Question No: 33 ( Marks: 2 )
What is the database?
Question No: 34 ( Marks: 2 )
What is the use of Default keyword in switch structure?
Question No: 35 ( Marks: 3 )
How can we include images in a web page using HTML and Java script?
Question No: 36 ( Marks: 3 )
Where "While" loop is more preferable than "For" loop and vice versa ? , explain with the
help of example.
Question No: 37 ( Marks: 3 )
What do you mean by FTP or File Transfer Protocol?
Question No: 38 ( Marks: 5 )
Differentiate between For and While loop by writing the syntax of both loops.
Question No: 39 ( Marks: 5 )
Write JavaScript code for the following: http://vustudents.ning
Make a function compareWithTen(value)
Compare the function argument with ‘10’ and display a message whether the value is less
than, equal to or greater than 10.
Question No: 40 ( Marks: 10 )
What is the problem with Relational Database and what solution you can suggest for it?
Question No: 41 ( Marks: 10 )
Develop a web page that displays six thumbnail images. A main image should change to a
larger version of the thumbnail as soon as the mouse moves over a thumbnail image. Write
complete HTML and JavaScript code.
COMPOSED AND SOLVED BY…….WAJID MALIK…

77
FINALTERM EXAMINATION
Fall 2009
CS101- Introduction to Computing
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Cray-1 was first commercial _________ computer
► Super
► Mini
► Micro
► Personal
Question No: 2 ( Marks: 1 ) - Please choose one
To improve the time for scannig a web page, text should be ___________.
► Centered
► Left Aligned
► Right Aligned
► Staggered
Question No: 3 ( Marks: 1 ) - Please choose one
__________% of the users have left websites in frustration due to poor navigation.
► 40
► 62
► 83
► 91
COMPOSED AND SOLVED BY…….WAJID MALIK…

78
Question No: 4 ( Marks: 1 ) - Please choose one
_________ routes packets through the internet to get them to their destination.
► FTP
► HTTP
► TCP
► IP
Question No: 5 ( Marks: 1 ) - Please choose one
A variable can be _________ in scope.
► Local
► Global
► Either local or global
► None of the given options
Question No: 6 ( Marks: 1 ) - Please choose one
<UL> tag is used to
► underline text
► end the line
► create ordered list
► create unordered list
COMPOSED AND SOLVED BY…….WAJID MALIK…

79
Question No: 7 ( Marks: 1 ) - Please choose one
The __________ reserved word allows a determined action to be taken if the first condition
is false.
► For
► While
► Else
► Switch
Question No: 8 ( Marks: 1 ) - Please choose one
Word Processor is a _________________
► System Software
► Application Software
► Device
► Utility
Question No: 9 ( Marks: 1 ) - Please choose one
Automatic machines performing various tasks that were previously done by humans, are
called ____________.
► Robotics
► Computers
► Decision Making Systems
► Autonomous Web Agents
COMPOSED AND SOLVED BY…….WAJID MALIK…

80
Question No: 10 ( Marks: 1 ) - Please choose one
In tabular storage, fields placed in a particular row are strongly ___________.
► Independent
► Dependent
► Interrelated
► Inconsistent
Question No: 11 ( Marks: 1 ) - Please choose one
country=”Hello Pakistan”;
document.write(country.length);
The out put of the above statement is ____________.
► 12
► 13
► 14
► 15
Question No: 12 ( Marks: 1 ) - Please choose one
Due to working at home, contact with the colleagues is __________, which may result in
__________ quality of work
► Reduced, Poorer
► Reduced, Better
► Increased, Poorer
► Increased, Better
COMPOSED AND SOLVED BY…….WAJID MALIK…

81
Question No: 13 ( Marks: 1 ) - Please choose one
Spies of one business monitoring the network traffic of their competitors’ ___________.
► Industrial Intelligence
► Industrial Espionage
► Industrial Spying
► Industrial Surveillance
Question No: 14 ( Marks: 1 ) - Please choose one
Unlike virus, ___________ is a stand-alone program.
► Trojan horse
► Logic bomb
► Worm
► Time bomb
Question No: 15 ( Marks: 1 ) - Please choose one
Planning and tracking of the project is the responsibility of the___________.
► Architect
► Team Lead
► Developer
► Chief Executive Officer
COMPOSED AND SOLVED BY…….WAJID MALIK…

82
Question No: 16 ( Marks: 1 ) - Please choose one
____________ is in Executive team.
► Project Manager
► CEO
► Team Lead
► Developer
Question No: 17 ( Marks: 1 ) - Please choose one
_____________ team is responsible for the maintenance, expansion , improvement of the
infrastructure consisting of workstations, networking equipment, software and network
security.
► Support
► Configuration Management
► Quality Assurance
► Developer
Question No: 18 ( Marks: 1 ) - Please choose one
Using smart editors they can automatically color different parts of statements in different
colors e.g. HTML tags in ____________ color.
► Green
► Grey
► Blue
► None of the given options
COMPOSED AND SOLVED BY…….WAJID MALIK…

83
Question No: 19 ( Marks: 1 ) - Please choose one
Structures, in which another list starts before the first list is finished, are called:
► Multiple Lists
► Nested Lists
► Ordered Lists
► Un-ordered Lists
Question No: 20 ( Marks: 1 ) - Please choose one
Microsoft Word is a type of:
► System Software
► Freeware Software
► Shrink-Wrapped Software
► Custom-built Software
Question No: 21 ( Marks: 1 ) - Please choose one
To display a radio button on the web page, we use ___ tag
► INPUTBUTTON
► INPUT
► RADIOBUTTON
► RADIO
COMPOSED AND SOLVED BY…….WAJID MALIK…

84
Question No: 22 ( Marks: 1 ) - Please choose one
Flow control constructs in JavaScript includes:
► If-Else
► Loops and If -Else
► Switch and If-Else
► All of the given choices
Question No: 23 ( Marks: 1 ) - Please choose one
Which is NOT true for JavaScript variable name ?
► Student
► Roll_no_1111
► For
► _schedule
Question No: 24 ( Marks: 1 ) - Please choose one
In JavaScript, first element of an array has the index:
►1
► -1
►2
► None of the given choices
COMPOSED AND SOLVED BY…….WAJID MALIK…

85
Question No: 25 ( Marks: 1 ) - Please choose one
In flat-file databases each record was separated by a special character named :
► Horizontal bar
► Vertical bar
► Text bar
► Character bar
Question No: 26 ( Marks: 1 ) - Please choose one
JavaScript function fixed() has equivalent HTML tag-set ____
► <.FIX>……………</FIX>
► <F>………………..</F>
► <PRE>………….</PRE>
► <H>………………..</H>
Question No: 27 ( Marks: 1 ) - Please choose one
74HC163 has two enable input pins which are _______ and _________
► ENP, ENT
► ENI, ENC
► ENP, ENC
► ENT, ENI
COMPOSED AND SOLVED BY…….WAJID MALIK…

86
Question No: 28 ( Marks: 1 ) - Please choose one
______________ software directly interacts with the hardware.
► Application software
► System software
► Dynamic software
► Distributed software
Question No: 29 ( Marks: 1 ) - Please choose one
From which of the following is NOT a technique through which Security can be improved :
► Private or virtual-private networks
► Firewalls
► Metal detectors
► Virus detectors
Question No: 30 ( Marks: 1 ) - Please choose one
<script>
Number=new Array(5);
for(var i=1; i<=5 ; i=i+1)
{
for( var k=6; k<=10; k=k+1)
{
Number[i]= k*i;
}
}
</script>
COMPOSED AND SOLVED BY…….WAJID MALIK…

87 Question No: 35 ( Marks: 3 )


For how many times the Nested For Loop shall execute;
► 20
► 15
► 25
► Shall terminate in first loop.
Question No: 31 ( Marks: 1 )
What does NIC stand for?
Question No: 32 ( Marks: 1 )
Name any software which can be used to make a presentation.
Question No: 33 ( Marks: 2 )
How JavaScript Arrays are heterogeneous ?
Question No: 34 ( Marks: 2 )
What is the database?
Differentiate between LAN and WAN with one example of each.
Question No: 36 ( Marks: 3 )
What are Trojan Horses ?
COMPOSED AND SOLVED BY…….WAJID MALIK…

88
Question No: 37 ( Marks: 3 )
What do you mean by FTP or File Transfer Protocol?
Question No: 38 ( Marks: 5 )
In which situation, we use:
i- switch construct
ii- multiple If-else construct
Question No: 39 ( Marks: 5 )
What are the responsibilities and profile of a Team Lead?
Question No: 40 ( Marks: 10 )
Give any five well-known design heuristics for architectural design.
Question No: 41 ( Marks: 10 )
Is tabular data storage better than flat file data storage? Justify your answer.
COMPOSED AND SOLVED BY…….WAJID MALIK…

89
FINALTERM EXAMINATION
Fall 2009
CS101- Introduction to Computing (Session - 1)
Time: 120 min
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
A protocol used for receiving email messages is called ____________.
► URL
► Telnet
► POP3
► SMTP
Question No: 2 ( Marks: 1 ) - Please choose one
The browser breaks down the URL into ________ parts.
►2
►3
►4
►5
COMPOSED AND SOLVED BY…….WAJID MALIK…

90
Question No: 3 ( Marks: 1 ) - Please choose one
Which one of the following is NOT a primary color?
► Red
► Green
► Yellow
► Blue
Question No: 4 ( Marks: 1 ) - Please choose one
A combination of word processing and graphic design is
► Corel Draw
► Desktop Publishing
► Paint
► WordPad
Question No: 5 ( Marks: 1 ) - Please choose one
Automatic machines performing various tasks that were previously done by humans, are
called ____________.
► Robotics
► Computers
► Decision Making Systems
► Autonomous Web Agents
COMPOSED AND SOLVED BY…….WAJID MALIK…

91
Question No: 6 ( Marks: 1 ) - Please choose one
_________ can be used for entering, editing, or viewing data, one record at a time.
► Queries
► Forms
► Reports
► None of the given options
Question No: 7 ( Marks: 1 ) - Please choose one
random() function returns a randomly-selected, floating-point number between
____________.
► 0 and 1
► 0 and 10
► 0 and -10
► 0 and -1
Question No: 8 ( Marks: 1 ) - Please choose one
When’+’ operator is used with string operands, it _____________ both strings.
► Adds
► Subtracts
► Concatenates
► Compares
COMPOSED AND SOLVED BY…….WAJID MALIK…

92
Question No: 9 ( Marks: 1 ) - Please choose one
Due to working at home, contact with the colleagues is __________, which may result in
__________ quality of work
► Reduced, Poorer
► Reduced, Better
► Increased, Poorer
► Increased, Better
Question No: 10 ( Marks: 1 ) - Please choose one
What is the 2nd step of DoS attack?
► Race
► Arm
► Search
► Attack
Question No: 11 ( Marks: 1 ) - Please choose one
The Information technology has three components ______________.
► Telecom Engineering, Network Engineering, Computer Science
► Telecom Engineering, Computer Engineering, Computer Science
► Telecom Engineering, Computer Engineering, Database Engineering
► Telecom Engineering, Computer Engineering, Hardware Engineering
COMPOSED AND SOLVED BY…….WAJID MALIK…

93
Question No: 12 ( Marks: 1 ) - Please choose one
The developer report to ___________ in a development team.
► Team Lead
► Project Manager
► CEO
► IT Manager
Question No: 13 ( Marks: 1 ) - Please choose one
There are _________ types of errors.
►2
►3
►4
►5
Question No: 14 ( Marks: 1 ) - Please choose one
TCP stands for ________.
► Transfer Center protocol
► Transmission Control Protocol
► Transmission Center Protocol
► Telephone Center Protocol
COMPOSED AND SOLVED BY…….WAJID MALIK…

94
Question No: 15 ( Marks: 1 ) - Please choose one
When the packets reach at destination, __________ reassembles them into original
message.
► Protocol
► TCP
► IP
► NIC
Question No: 16 ( Marks: 1 ) - Please choose one
Which one of these is NOT an example of embedded computers?
► IMB PC
► Microwave oven
► Refrigerator
► Calculator
Question No: 17 ( Marks: 1 ) - Please choose one
A _________translates a high-level language (that is easy to understand for humans) into a
language that the computer can understand
► Computer
► Transistor
► Compiler
► Device
COMPOSED AND SOLVED BY…….WAJID MALIK…

95
Question No: 18 ( Marks: 1 ) - Please choose one
_______ is a related collection of WWW files that includes a beginning file called a
homepage
► HTML
► Website
► HTTP
► Web page
Question No: 19 ( Marks: 1 ) - Please choose one
To display a radio button on the web page, we use ___ tag
► INPUTBUTTON
► INPUT
► RADIOBUTTON
► RADIO
Question No: 20 ( Marks: 1 ) - Please choose one
Randomized algorithms are often ________ than deterministic algorithms for the same
problem.
► Simpler and more slow
► Simpler and more efficient
► Complex and more efficient
► Complex and more slow
COMPOSED AND SOLVED BY…….WAJID MALIK…

96
Question No: 21 ( Marks: 1 ) - Please choose one
Flow control constructs in JavaScript includes:
► If-Else
► Loops and If -Else
► Switch and If-Else
► All of the given choices
Question No: 22 ( Marks: 1 ) - Please choose one
______ is also known as System Architecture
► High level system design
► Low level system design
► Every system design
► Software Requirement
Question No: 23 ( Marks: 1 ) - Please choose one
Functions are also called:
► Heuristics
► Variables
► Arrays
► Subprograms
COMPOSED AND SOLVED BY…….WAJID MALIK…

97
Question No: 24 ( Marks: 1 ) - Please choose one
Which event handler executes the specified JavaScript code when a window/form element
loses focus ?
► onBlur
► onLoad
► onUnload
► onFocus
Question No: 25 ( Marks: 1 ) - Please choose one
User can remotely log on to a computer and can have a control over it like a local user
using
► TelNet Protocol
► TelNet Protocol and connected to the user through TCP/IP network
► TelNet protocol and FTP
► TCP/IP and FTP
Question No: 26 ( Marks: 1 ) - Please choose one
_____ is the process of analyzing large databases to identify patterns.
► Data normalization
► Data management
► Data Mining
► None of the given options
COMPOSED AND SOLVED BY…….WAJID MALIK…

98
Question No: 27 ( Marks: 1 ) - Please choose one
_________________ are powerful pieces of hardware, but not much useful on their own.
► Microcontrollers
► Microprocessors
► Integrated circuits
► Ports
Question No: 28 ( Marks: 1 ) - Please choose one
You can view a 3-D image on a _____________.
► 3-D display
► 2-D display
► On both 2-D and 3-D displays
► We can not view a 3-D image
Question No: 29 ( Marks: 1 ) - Please choose one
From which of the following is NOT a technique through which Security can be improved :
► Private or virtual-private networks
► Firewalls
► Metal detectors
► Virus detectors
COMPOSED AND SOLVED BY…….WAJID MALIK…

99
Question No: 30 ( Marks: 1 ) - Please choose one
In a library’s database, if there is an entry in the register for Book # 423 then the
corresponding Book must actually exist; is an example of which type of data integrity:
► Type integrity
► Limit integrity
► Physical Integrity
► Referential Integrity
Question No: 31 ( Marks: 1 )
What does NIC stand for?
Answer: Network Interface Cards.
Question No: 32 ( Marks: 1 )
Why there is a need to use primary key in database ?
Answer: Primary Key is a field that uniquely identifies each record stored in a table.
Question No: 33 ( Marks: 2 )
What is internet?
Question No: 34 ( Marks: 2 )
What is the database?
Question No: 35 ( Marks: 3 )
The event handler attribute consists of three parts. Write about each of them.
COMPOSED AND SOLVED BY…….WAJID MALIK…

100
Question No: 36 ( Marks: 3 )
Where "While" loop is more preferable than "For" loop and vice versa ? , explain with the
help of example.
Question No: 37 ( Marks: 3 )
Write JavaScript code to convert the number 236.2363611111556 into currency format and
JavaScript statement to show output.
Question No: 38 ( Marks: 5 )
What is the TCP/IP? How it works ?
Question No: 39 ( Marks: 5 )
Write a short note on:
a. Good programming methodology?
b. Correct program
COMPOSED AND SOLVED BY…….WAJID MALIK…

101
Question No: 40 ( Marks: 10 )

Write down JavaScript JavaScript function


functions that is equivalent to
the following HTML code?
HTML code

<FONT size=18>

</FONT>

<FONT color=”blue”>

</FONT>

<PRE> … </PRE>

<A href=URL> …</A>

<BIG> … </BIG>

<SMALL> … </SMALL>

<SUB> … </SUB>

<SUP> … </SUP>

<B> … </B>

<I> … </I>

You might also like