FINALTERM  EXAMINATION

Spring 2010

CS101- Introduction to Computing
by Raza Tahir
  
Time: 90 min
Marks = M = 58

 
CS101 - Introduction to Computing - Q.No. 1      ( M - 1 ) .
 
__________% of the users have left websites in frustration due to poor navigation.
       ► 40
       ► 62
       83
       ► 91


CS101 - Introduction to Computing - Q.No. 2      ( M - 1 ) .
 
The impact of a digit in a number is determined by its ---------------
       ► Value
       Location
       ► Length
       ► None of above


CS101 - Introduction to Computing - Q.No. 3      ( M - 1 ) .
 
Hexadecimal number system is based on -------------------- digits
       ► 2
       ► 8
       ► 12
       16
 
CS101 - Introduction to Computing - Q.No. 4      ( M - 1 ) .
 
TCP stands for ___________.
       ► Total communication protocol
       ► Transmission control protocol
       ► Transfer control protocol
       ► Transfer collection protocol


CS101 - Introduction to Computing - Q.No. 5      ( M - 1 ) .
 
The browser breaks down the URL into ________ parts.
       ► 2
       3
       ► 4
       ► 5


CS101 - Introduction to Computing - Q.No. 6      ( M - 1 ) .
 
A single pixel can acquire approximately ___________ color schemes.
       ► 1 million
       ► 2 million
       ► 10 million
       16 million


CS101 - Introduction to Computing - Q.No. 7      ( M - 1 ) .
 
Serial arrangement in which things follow logical order or a recurrent pattern, such as statements executing one by one, is called __________.
       ► Loop
       Sequence
       ► Condition
       ► Array



CS101 - Introduction to Computing - Q.No. 8      ( M - 1 ) .
 
According to a popular heuristic, success is defined by ___________.
       The user
       ► The builder
       ► Both user and builder
       ► None of the given options


CS101 - Introduction to Computing - Q.No. 9      ( M - 1 ) .
 
Which one is the best option for designing a Medical Expert System?
       ► Rule Based System
       ► Genetic Algorithm
       Fuzzy Logic
       ► Neural Network


CS101 - Introduction to Computing - Q.No. 10      ( M - 1 ) .
 
document.write("20"+"12") ;
The out put of the above statement is ____________.
       ► 1220
       2012
       ► 20 12
       ► 32


CS101 - Introduction to Computing - Q.No. 11      ( M - 1 ) .
 
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


CS101 - Introduction to Computing - Q.No. 12      ( M - 1 ) .
 
The effective way not to only write programs but also it works properly and further more to minimize the time and the development cost of the program is called___________________
       ► Programming Mechanism
       ► Programming Methodology
       ► Programming Synchronization
       ► None of the given options


CS101 - Introduction to Computing - Q.No. 13      ( M - 1 ) .
 
The tasks performed to determine the existence of defects is called _______
       ► Debugging
       ► Testing
       ► Repairing
       ► Coding


CS101 - Introduction to Computing - Q.No. 14      ( M - 1 ) .
 
Deep Blue was the name of
       ► computer
       ► human
       ► city
       ► game


CS101 - Introduction to Computing - Q.No. 15      ( M - 1 ) .
 
There is a battery on the motherboard to:
       ► Give power to the processor
       ► Save information when computer is off
       ► Save information when computer is on
       ► Give power to the motherboard


CS101 - Introduction to Computing - Q.No. 16      ( M - 1 ) .
 
Compound Statement after decision constructs in JavaScript is enclosed with
       ► (  )
       ► [  ]
       ► {  };
       {  }


CS101 - Introduction to Computing - Q.No. 17      ( M - 1 ) .
 
______ occurs when a function calls itself.
       ► Recursion
       ► Call by value
       ► Call by reference
       ► Parsing


CS101 - Introduction to Computing - Q.No. 18      ( M - 1 ) .
 
Which function returns integer nearest to x ?
       ► random()
       ► exp(x)
       ► log(x)
       round(x)


CS101 - Introduction to Computing - Q.No. 19      ( M - 1 ) .
 
Microphone is an input as well as output device. This statement is
       ► True
       False


CS101 - Introduction to Computing - Q.No. 20      ( M - 1 ) .
 
74HC163 has two enable input pins which are _______ and _________
       ► ENP, ENT
       ► ENI, ENC
       ► ENP, ENC
       ► ENT, ENI


CS101 - Introduction to Computing - Q.No. 21      ( M - 1 ) .
 
Radio Buttons are used when you want the user to select one of a limited number of choices.
       True
       ► False
 
CS101 - Introduction to Computing - Q.No. 22      ( M - 1 ) .
 
In partitioning of program/module, it should be assured that partitioned chunks should be as _________ as possible.
       ► Dependent
       ► Independent
       ► Complex
       ► All of the above


CS101 - Introduction to Computing - Q.No. 23      ( M - 1 ) .
 
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


CS101 - Introduction to Computing - Q.No. 24      ( M - 1 ) .
 
DBMS and Database are two names of one term .
       ► True
       False


CS101 - Introduction to Computing - Q.No. 25      ( M - 1 ) .
 
There are _______ types of program errors
       2
       ► 4
       ► 6
       3


CS101 - Introduction to Computing - Q.No. 26      ( M - 1 ) .
 
Super computers consists of more than one parallel processors because
       ► One big processor is more expensive than parallel processors
       ► Through parallel processors problems can be solved easily
       ► Small processors are easy to manufacture
       ► All of the given


CS101 - Introduction to Computing - Q.No. 27      ( M - 2 )
 
What is the difference between ‘single-line text input field’ and ‘password input field’ ?
ANS:
A Password Field is good for sensitive information. The only item that is absolutely necessary is the Submit Button. It is a good idea to include a Reset Button for the convenience of the user.
A text field gathers information using a single line of text. This field is useful for short answers. The default text field is blank. If you want to specify default text, use the VALUE attribute
.
            .
CS101 - Introduction to Computing - Q.No. 28      ( M - 2 )
 
What is internet?
ANS:
          Internet is also called WAN, which means the interconnection of large number of computer networks and it consists of millions of private, public, academic, business, and government networks of local to global scope that are linked by a broad array of electronic and optical networking technologies.
CS101 - Introduction to Computing - Q.No. 29      ( M - 2 )
 
In JavaScript, what is event handling? What are the two types of events?
ANS:
            Event handling means capturing an event and responding to that.
Events e.g. onMouseOver, OnClick, onLoad, Onunload, updating the clock etc. are captured by the Java script & according to the programs they are responded accordingly
CS101 - Introduction to Computing - Q.No. 30      ( M - 2 )
 
Define the key weakness of the web?
ANS:
 
CS101 - Introduction to Computing - Q.No. 31      ( M - 3 )
 
How can we include images in a web page using HTML and Java script?
ANS:
Image in HTML
It is easier to insert images and pictures i.e. JPG, GIF & BMP files in the web page through HTM codes.
The tag is used which is used as under:-
text<br Height=(in pixels) width=(in pixels)

Images in JavaScript
Images in JavaScript may be used with the event handling i.e. OnLoad, OnUnload, OnError and OnAbort etc.
The properties i.e. used for Java script are as under:-
1. Name
2. Border
3. Complete
4. Height
5. src
for example:-
xyz” src=”abc.jpg”>
CS101 - Introduction to Computing - Q.No. 32      ( M - 3 )
 
Differentiate between onLoad and onUnload
ANS:
On load event is used when the page is load in the browser while on the other side onUnload event works when the page closes down.

 
CS101 - Introduction to Computing - Q.No. 33      ( M - 3 )
 
Elaborate Rester Graphics with examples.
ANS:
Raster graphics are digital images created or captured (for example, by scanning in a photo) as a set of samples of a given space . A raster file is usually larger than a vector graphics image file. A raster file is usually difficult to modify without loss of information.
Examples of raster image file types are: BMP, TIFF, GIF, and JPEG files.
 
CS101 - Introduction to Computing - Q.No. 34      ( M - 5 )
 
What is a Relational Database? Give the names of any three RDBMS software. (2+3)
ANS:
Database architecture consists of three levels, external, conceptual and internal. Clearly separating the three levels was a major feature of the relational database.
NAMES:
Oracle Database software, Linux, andoracle e business database software , and Oracle OLAP.
CS101 - Introduction to Computing - Q.No. 35      ( M - 5 )
 
How many ways are there to call a function in a program ? Explain with example
ANS:
there are two methods of function in a program
1st method is used within the html coding with immediate in the even handling
on the other side
function can also be defined in the heading portion of the html page
it is a better choice to use function as it include many statments in it.
OnMouseOver=
“if(document.sendEmail.sender.value.length<1)
Window.alert(‘empty field!’)”
while in the heading portion
it will be as
function checkForm() {
if ( document.sendEmail.sender.value.length < 1) {
window.alert( “Empty Field” );
}
CS101 - Introduction to Computing - Q.No. 36      ( M - 5 )
 
What do you mean by the term 'Telepresence' in Computing World?
ANS: