FINALTERM EXAMINATION Spring 2009 CS101- Introduction to Computing (Session - 4) Note:- MCQs in Blue are sure answers and yellow highlighted are Quarantined M a r k s: 75 Time: 120 min Question No: 1 ( M a r k s: 1 ) http://vuzs.net Which of the following hardware component of a computer can also be called as engine? Bus Storage Memory Processor Question No: 2 ( M a r k s: 1 ) http://vuzs.net TCP stands for. Total communication protocol Transmission control protocol (page. no.317) Transfer control protocol Transfer collection protocol Question No: 3 ( M a r k s: 1 ) http://vuzs.net breaks down the message to be sent over the internet into packets. FTP HTTP TCP (Page.no.317) IP Question No: 4 ( M a r k s: 1 ) http://vuzs.net A variable can be in scope. Local Global Either local or global (page.no.204) None of the given options
Question No: 5 ( M a r k s: 1 ) http://vuzs.net A protocol used for receiving email messages is called. URL Telnet POP3 SMTP (page.no.213) Question No: 6 ( M a r k s: 1 ) http://vuzs.net A function is also called. Sub-program Procedure Sub-routine All of the given option Question No: 7 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net Which one of the following is NOT a primary color? Red Green Yellow Blue Question No: 9 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net a = Math.ceil(12.01) What will be the value of a?
12 13 12.0 13.01 Question No: 11 ( M a r k s: 1 ) http://vuzs.net Event handlers are placed in the portion of a Web page as attributes in HTML tags. HEAD BODY (page.no229) SCRIPT TITLE Question No: 12 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net 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) Question No: 15 ( M a r k s: 1 ) http://vuzs.net In relational database, data store in the form of. Tables (page.no.321) Rows
Columns None of the given options Question No: 16 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net waits for some time and then launch a function. Timeout( ) settimeout( ) (page.no.290) settime( ) settimein( ) Question No: 18 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net team consists on the sharpest technical minds in the company. Architecture (page.no.302) Business Development
Configuration Management Developer Question No: 21 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net Deep Blue was the name of computer (page.no.9) human city game Question No: 24 ( M a r k s: 1 ) http://vuzs.net Information available on the web is mostly free of cost costly very cheap of no use Question No: 25 ( M a r k s: 1 ) http://vuzs.net 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 ( M a r k s: 1 ) http://vuzs.net is the best known builder for supercomputers. Sun Cray Research (page.no.21) Microsoft Apple Question No: 27 ( M a r k s: 1 ) http://vuzs.net Which one is the example of spreadsheet software? MS Word MS PowerPoint MS Excel MS Access Question No: 28 ( M a r k s: 1 ) http://vuzs.net Currently the BlueRay DVD can store more than of data. 10 GB 100 GB 50 GB (page.no.305) 150 GB Question No: 29 ( M a r k s: 1 ) http://vuzs.net Blue Pacific is a name of computer. Mini Desktop Micro Super (page.no.21) Question No: 30 ( M a r k s: 1 ) http://vuzs.net are powerful pieces of hardware, but not much useful on their own. Microcontrollers Microprocessors (page.no.33) Integrated circuits Ports Question No: 31 ( M a r k s: 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 ( M a r k s: 1 ) What are the other names of function? Any one. Routine, procedure, sub prograam Question No: 33 ( M a r k s: 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 ( M a r k s: 2 ) What is the database? 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 ( M a r k s: 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 ( M a r k s: 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 ( M a r k s: 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 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.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 ( M a r k s: 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 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 ( M a r k s: 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; } CS101-Introduction to Computing Question No: 40 ( M a r k s: 10 ) Write a note on : Coding guidelines Guidelines for developing short programs. Coding guidelines 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 ( M a r k s: 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
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 graphicsvirtually 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