cs101 final paper 2010

Upload: taimoor-sultan

Post on 29-May-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 CS101 Final Paper 2010

    1/7

    CS101 Final Paper 2010

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

    What is NOT a key factor while designing a website? Usability

    User-friendly Consistency Complexity (correct)

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

    Communications on the internet is controlled by a set of two protocols which are ____________. IMAP and SMTP

    FTP and HTTP

    TCP and IP (correct)

    TCP and HTTP

    Question No: 3 ( Marks: 1 ) - Please choose oneA variable can be _________ in scope.

    Local Global

    Either local or global (correct) None of the given options

    Question No: 4 ( Marks: 1 ) - Please choose oneA protocol used for receiving email messages is called ____________. URL

    Telnet POP3 (correct)

    SMTP

    Question No: 5 ( Marks: 1 ) - Please choose oneAliasing problem can be managed by ____________the size of pixels.

    Reducing (correct) Increasing

    Gaining Modifying

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

    Serial arrangement in which things follow logical order or a recurrent pattern, such as statementsexecuting one by one, is called __________.

    Loop Sequence (correct) 80% confidence

  • 8/9/2019 CS101 Final Paper 2010

    2/7

    Condition Array

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

    Which of the following data types are recognized by JavaScript?

    Strings Numbers Undefined

    All of the given options (correct)

    Question No: 8 ( Marks: 1 ) - Please choose onea = Math.ceil(12.01)

    What will be the value of a ?

    12

    13 (correct) 12.0

    13.01

    Question No: 9 ( Marks: 1 ) - Please choose oneIn the old days, databases did NOT support ____________.

    Number Boolean

    Video (correct) Text

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

    The organizations are learning that business can be done in a more effective manner if emphasisis placed upon ___________.

    Cooperation Shared responsibility

    Networking All of the given options (correct)

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

    Module level design is the responsibility of the ___________. Architect

    Team Lead Developer (correct)

    CEO

    Question No: 12 ( Marks: 1 ) - Please choose one_____________ errors are caused by the code that somehow violates the rule of the language.

    Syntax (correct) Semantic

  • 8/9/2019 CS101 Final Paper 2010

    3/7

    Run time Load time

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

    The world first computer program was written to compute:

    Simple sequence Multiple sequence Bernoullis sequence (correct)

    Increasing sequence

    Question No: 14 ( Marks: 1 ) - Please choose oneMicrosoft Word is a type of:

    System Software Freeware Software

    Shrink-Wrapped Software (correct) Custom-built Software

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

    We need _____________ for memory management in computer Software

    Hardware Operating System (correct)

    Application Software

    Question No: 16 ( Marks: 1 ) - Please choose one_____________ is generally measured in terms of the number of steps required to execute an

    algorithm.

    Space Time (correct)

    Memory and time Bandwidth

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

    PowerBuilder falls in the category of ______________.

    Assembly Languages4-th Generation Languages (correct)Machine LanguagesHigh-Level Languages

    Question No: 18 ( Marks: 1 ) - Please choose one___________ means to break down into simpler components and analyze.

    RecursionParsing (correct)ScopeNavigation

  • 8/9/2019 CS101 Final Paper 2010

    4/7

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

    for(var i=1; i

  • 8/9/2019 CS101 Final Paper 2010

    5/7

    Project manager None of given

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

    CEO stands for____________________

    Central Executive officer Chief External officer Chief executive officer (correct)

    None of given

    Question No: 24 ( Marks: 1 ) - Please choose oneDecision Support Systems will become a bigger part of the professional life of the________ .

    Doctors Mangers

    Marketers All of above (correct)

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

    The output of fuzzy Logic System is computed by using ______Technique. MAX-MAX

    MAX-MIN MIN-MAX (correct)

    None of the given

    Question No: 26 ( Marks: 1 ) - Please choose oneIn the statement Math.PI, Math is _________ and PI is ___________.

    Variable, Constant Object , Method

    Object , Function Object , Property (correct)

    Question No: 27 ( Marks: 2 )

    For what purposes FTP is used in networks ?Used to transfer files between computers on a TCP/IP network (e.g Internet)

    Simple commands allow the user to:

    Question No: 28 ( Marks: 2 )In JavaScript, what is event handling? What are the two types of events?

    Question No: 29 ( Marks: 2 )Define the key weakness of the web?

    The Web (as it currently exists) was designed for humans to read, not for

    computers to understand and manipulate meaningfully Computers face great problems in dealing with the current text- and graphics-based

  • 8/9/2019 CS101 Final Paper 2010

    6/7

    content of the Web

    Question No: 30 ( Marks: 2 )What was the obstacle to the construction of analytical engine?

    Because of the complexity of the machine, the lack of project management science, the expenseof its construction, and the difficulty of assessing its value by Parliament relative to otherprojects being lobbied for, the engine was never built.

    Question No: 31 ( Marks: 3 )

    The event handler attribute consists of three parts. Write about each of them.The identifier of the event handler

    The equal signA string consisting of JavaScript statements enclosed in double or single quotes

    Question No: 32 ( Marks: 3 )

    Who is a Computing Professional?. Professionals involved in the development and/or maintenance of SW and/or

    computer HW Computer scientists, software engineers, computer engineers, and some of the

    telecom engineers are generally classified as computing professionals

    Question No: 33 ( Marks: 3 )Give any three applications of computer graphics?

    Used for scientific research, artistic expression, or for industrial applications

    Question No: 34 ( Marks: 5 )

    Mention any five applications of Artificial Intelligent System.

    medical diagnosis, stock trading, robot control, law, scientific discovery and toys

    Question No: 35 ( Marks: 5 )

    What are the important properties, methods and event handlers of image object?

    1. An instance of the Image object is created using the new keyword2. The src property of this instance is set equal to the filename of the image to be preloaded

    3. That step starts the down-loading of the image into the cache without actuallydisplaying it

    4. When a pre-loaded image is required to be displayed, the src property of thedisplayed image is set to the src property of the pre-fetched image

    Example1:- (preloading)

    dieImg = new Array( 7 ) ;for( k = 1; k < 7; k = k + 1 ) { //Preload images

  • 8/9/2019 CS101 Final Paper 2010

    7/7

    dieImg[ k ] = new Image( ) ;dieImg[ k ].src = "die" + k + ".gif" ;

    Example 2:-

    dieImg = new Array( 7 ) ;

    for( k = 1; k < 7; k = k + 1 ) { // Preload imagesdieImg[ k ] = new Image( ) ;dieImg[ k ].src = "die" + k + ".gif" ;

    }

    Question No: 36 ( Marks: 5 )Explain function arguments with the help of an example?

    ARGUMENT :-

    Arguments define the interface between the function and the rest of the Web page

    Arguments values are passed to the function by value (some popular languages passarguments by reference as well

    Info is passed on to the method through one or more arguments.

    Parses the string argument; returns an integer

    Example:-

    function vuWindow() {window.open(http://www.vu.edu.pk/);}