Sponsored Links


Results 1 to 1 of 1

Thread: cs201 introduction to programing midterm paper fall 2010

  1. #1
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239

    Word Icon 35px Jpg.ashx cs201 introduction to programing midterm paper fall 2010

    Sponsored Links1


    Cs201 midterm papers by vuhelp can be downloaded in the form of .DOC and also in PDF. So enjoy and have fun. The attachments can be downloaded directly.
    If want to solve these question students can discuss with us.

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


    Compiler is a

    Sponsored Links

    ► System software

    ► Application Software

    ► Driver

    ► Editor



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


    If Num is an integer variable then Num++ means,

    ► Add 1 two times with Num

    ► Add 1 with Num

    ► Add 2 with Num

    ► Subtract 2 from Num



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


    For one byte there are _____ combinations of values that can be stored in computer.


    ► 26

    ► 27

    ► 28

    ► 24



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


    In C/C++ language the header file which is used to perform useful task and manipulation of character data is


    ► cplext.h

    ► ctype.h

    ► stdio.h

    ► delay.h



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


    Default case in switch statement is,

    ► Must

    ► Optional

    ► syntax error

    ► Necessary



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


    When break statement is encountered in switch statement, it

    ► Stops the entire program

    ► Stops the execution of current statement

    ► Exits from switch statement

    ► None of the given options



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


    What will be the result of arithmetic expression 6+27/3*3?

    ► 33

    ► 45

    ► 9

    ► 30



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


    What is the correct syntax to declare an array of size 10 of int data type?




    ► int [10] name ;


    ► name[10] int ;


    ► int name[10] ;

    ► int name[] ;



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


    How many dimensions does n-dimensional array has?

    ► n dimensions

    ► 2n dimensions

    ► (n+1) dimensions

    ► (n-1) dimensions (Array starts from 0th element)



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


    What will be the correct syntax to access the value of fourth element of an array using pointer ptr?


    ► ptr[3]

    ► (ptr+3)

    ► *(ptr+3)

    ► Both 1and 3



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


    Which of the following values C++ use to represent true and false?

    ► 1 and 0

    ► 1 and -1

    ► 11 and 00

    ► Any numerical value



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


    Declaring structures does not mean that memory is allocated.

    ► True

    ► False



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


    For which array, the size of the array should be one more than the number of elements in an array?


    ► int

    ► double

    ► float

    ► char




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


    If a variable is passed by value to a function and the function makes some changes to that variable then it



    ► does not affect the original variable

    ► affects the original variable

    ► causes syntax error

    ► None of the given options






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


    In C/C++ the #include is called,

    ► Header file

    ► Preprocessor Directive

    ► Statement

    ► Function



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


    Loops are ------------------------ Structure.

    ► Decision

    ► Repetition

    ► Sequential

    ► Hierarchical



    Question No: 17 ( Marks: 2 )


    Which variable will be used in inner code block if we have the same names of variable at outer code block and inner code block?



    Question No: 18 ( Marks: 2 )


    Give one major use of pointer.


    Question No: 19 ( Marks: 2 )


    Which standard library is included when your program reads from, or writes to, files?



    Question No: 20 ( Marks: 3 )


    Perform left shift operation on a binary number 0101 and write the result in binary and decimal.


    Question No: 21 ( Marks: 3 )


    What is difference between variable and pointer?



    Question No: 22 ( Marks: 5 )


    Write a C/C++ program which defines an array of 10 elements.
    This program should ask a number from the user and search this number in the array if the number exists in the array, it should display the location of the number otherwise display the message The number is not in the given array.




    Question No: 23 ( Marks: 5 )


    Write a C/C++ program which defines an array of 15 elements and fill the array with string "12players2teams".
    This program should display that how many digits and alphabets the string "12players2teams" contains using Character handling functions.

    Sample output of program:

    Number of digits in string "12players2teams": 3
    Number of alphabets in string "12players2teams": 12
    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: 01-11-2012, 02:09 PM
  2. cs201 current midterm paper fall 2010 4 december
    By Xpert in forum Current Papers 2010
    Replies: 1
    Last Post: 12-04-2010, 02:52 AM
  3. cs201 current midterm paper fall 2010 december
    By Xpert in forum Current Papers 2010
    Replies: 1
    Last Post: 12-03-2010, 02:27 PM
  4. Replies: 13
    Last Post: 11-07-2010, 04:10 AM
  5. cs201 Introduction to Programing Handouts for Virtual University Students
    By IQ-test in forum Virtual University Handouts
    Replies: 0
    Last Post: 10-06-2010, 08:36 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