Sponsored Links


Results 1 to 1 of 1

Thread: cs201 solved & unsolved mid term paper spring 2011

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    18 cs201 solved & unsolved mid term paper spring 2011

    Sponsored Links1


    [COLOR="rgb(244, 164, 96)"]papers in attachment [/COLOR]


    MIDTERM EXAMINATION
    Spring 2009
    CS201- Introduction to Programming


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


    A precise sequence of steps to solve a problem is called

    ► Statement

    ► Program

    ► Utility

    ► Routine

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


    The Compiler of C language is written in

    ► Java Language

    ► UNIX

    ► FORTRON Language

    ► C Language

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


    Initialization of variable at the time of definition is,

    ► Must

    ► Necessary

    ► Good Programming

    ► None of the given options

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


    In if structure the block of statements is executed only,

    ► When the condition is false

    ► When it contain arithmetic operators

    ► When it contain logical operators

    ► When the condition is true

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


    Which of the following function(s) is/are included in stdlib.h header file?

    ► double atof(const char *nptr)

    ► int atoi(const char *nptr)

    ► char *strcpy ( char *s1, const char *s2)

    ► 1 and 2 only

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


    Dealing with structures and functions passing by reference is the most economical method

    ► True

    ► False

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


    Pointer is a variable which store,

    ► Data

    ► Memory Address

    ► Data Type

    ► Values

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


    Preprocessor program perform its function before ______ phase takes place.

    ► Editing

    ► Linking

    ► Compiling

    ► Loading

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


    Which of the following can not be a variable name?

    ► area

    ► _area

    ► 10area

    ► area2

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


    Which looping process is best, when the number of iterations is known?

    ► for

    ► while

    ► do-while

    Sponsored Links

    ► all looping processes require that the iterations be known

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


    Which character is inserted at the end of string to indicate the end of string?

    ► new line


    ► tab

    ► null

    ► carriage return

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


    How many bytes are occupied by declaring following array of characters?
    char str[] = “programming”;

    ► 10

    ► 11

    ► 12

    ► 13

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


    Which of the following header file defines the rand() function?

    ► iostream.h

    ► conio.h

    ► stdlib.h

    ► stdio.h

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


    Commenting the code _____________________

    ► Makes a program easy to understand for others.

    ► Make programs heavy, i.e. more space is needed for executable.

    ► Makes it difficult to compile

    ► All of the given options.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-16-2012, 05:26 PM
  2. today cs201 final term paper spring 23 July 2011
    By Vuhelper in forum Current paper 2011
    Replies: 0
    Last Post: 07-23-2011, 05:07 PM
  3. Replies: 1
    Last Post: 07-13-2011, 06:43 AM
  4. CS201 mid term paper current spring 22 May 2011
    By Vuhelper in forum Current paper 2011
    Replies: 0
    Last Post: 05-22-2011, 11:03 PM
  5. cs201 current mid term paper spring 18 May 2011
    By Vuhelper in forum Current paper 2011
    Replies: 0
    Last Post: 05-18-2011, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft