-->


CS201 Introduction to Programming midterm MCQ's

CS201 Introduction to Programming.Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more.

CS201- Introduction to Programming 

Latest Solved Mcqs from Midterm Papers

May 07,2011 
Lectures 1-22

MIDTERM EXAMINATION 
Spring 2010 
Question No: 1 ( Marks: 1 ) - Please choose one 
In order to get 256 from the number 2568 we divide this number by 10 and take, 
► Its remainder 
► The number 
► Its quotient 
► Its divisor 

virtual study solutions

Question No: 2 ( Marks: 1 ) - Please choose one 
The correct syntax of do-while loop is, 
► (condition ) while; do { statements; }; 
► { statements; } do-while (); 
► while(condition); do { statements; }; 
► do { statements; } while (condition); 

CS201 Midterm solved mcqs

Question No: 3 ( Marks: 1 ) - Please choose one 
Which of the following function(s) is/are included in stdlib.hheader file? 
► double atof(const char *nptr) 
► int atoi(const char *nptr) 
► char *strcpy ( char *s1, const char *s2) 
► 1 and 2 only  (Pg 191)

CS201 Short Notes

Question No: 4 ( Marks: 1 ) - Please choose one 
If the break statement is missed in switch statement then, 
► The compiler will give error 
► This may cause a logical error  (Pg 76)
► No effect on program 
► Program stops its execution 

CS201 Solved Papers

Question No: 5 ( Marks: 1 ) - Please choose one 
The data type before a function name represents its, 
► Return Type ( Pg 499)
► Function data 
► Function arguments 
► Function name 

Question No: 6 ( Marks: 1 ) - Please choose one 
Member function tellg() returns the current location of the _____________ pointer. 
► tellptr() 
► write() 
► seekg() 
► get() (Pg 215)

Question No: 7 ( Marks: 1 ) - Please choose one 
What does 5 | 6 , evaluate to in decimal where ‘|’ is bitwise OR operator?
 ►3 
 ►4 
 ►5 
 ►7 
5 | 6 = 
0 1 0 1 
0 1 1 0 
-------- 
0 1 1 1 = 7 

Question No: 8 ( Marks: 1 ) - Please choose one 
C is widely 
known as development language of _______ operating system. 
► Linux 
► Windows 
► Unix (Pg 12)
► Mac OS 

Question No: 9 ( Marks: 1 ) - Please choose one 
What will be 
the result of arithmetic expression 6+27/3*3? 
► 33 
► 45 
► 9 
► 30 

Question No: 10 ( Marks: 1 ) - Please choose one 
How many 
bytes are occupied by declaring following array of characters?
char str[] = “programming”;
► 10 
► 11 
► 12 
► 13 

Post a Comment

 
Top