MIDTERM EXAMINATION
Fall 2008
CS201- Introduction to Programming (Session - 2)
Time: 60 min
Marks: 38
Question No: 1 ( Marks: 1 ) - Please choose one
int i = 2.5; do { cout i * 2; } while (i > 3 && i < 10);
► 510
► 5
► 48
► error
Question No: 2 ( Marks: 1 ) - Please choose one
► 7
► 8
► 9
► 10
Question No: 3 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 4 ( Marks: 1 ) - Please choose one
►
►
Question No: 5 ( Marks: 1 ) - Please choose one
►0 - 99
► 1 - 99
► 0 - 100
► 1 - 100
Question No: 6 ( Marks: 1 ) - Please choose one
a = 3;
b = a++;
► 3, 4
► 4, 4
► 3, 3
► 4, 3
Question No: 7 ( Marks: 1 ) - Please choose one
► int arr[2][3] = {0,0} ;
► int arr[2][3] = {{0},{0}} ;
► int arr[2][3] = {0},{0} ;
► int arr[2][3] = {0} ;
Question No: 8 ( Marks: 1 ) - Please choose one
►strlength()
►stringlen()
►strlen()
►strLength()
Question No: 9 ( Marks: 1 ) - Please choose one
► 0 to 9
►1 to 9
►0 to 8
►1 to 8
Question No: 10 ( Marks: 1 ) - Please choose one
►
►
►
►
Question No: 11 ( Marks: 1 ) - Please choose one
►
►
Question No: 12 ( Marks: 1 ) - Please choose one
►
►
►
►
Question No: 13 ( Marks: 1 ) - Please choose one
►
►
►
►
Question No: 14 ( Marks: 1 ) - Please choose one
►Terminate normally
►Indicate Runtime error
►Indicate Compile time error
►Crashes
Question No: 15 ( Marks: 1 ) - Please choose one
►string.h
►stdlib.h
►ctype.h
►sconvert.h
Question No: 16 ( Marks: 1 ) - Please choose one
►
►
►
►
Question No: 17 ( Marks: 1 )
Question No: 18 ( Marks: 1 )
Question No: 19 ( Marks: 2 )
Question No: 20 ( Marks: 3 )
How many elements does array 'day' has?
(ii) If the declaration is changed as: int day[7] = {1, 2, 3, 4, 5, 6, 7};
How many elements does array 'day' has?
Question No: 21 ( Marks: 5 )
Question No: 22 ( Marks: 10 )
No comments:
Post a Comment
PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE
Note: Only a member of this blog may post a comment.