CS201 Midterm Solved MCQs Set 2 by Moaaz and Asad
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 260 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 19. Download the file for all 19 pages.
asad Asad Ali
Latest Mcqs
Spring 2010
Q1. In order to get 256 from the number 2568 we divide this number by 10 and take, (1 marks)
Correct answer: Its quotient
Q2. The correct syntax of do-while loop is, (1 marks)
Correct answer: do { statements; } while (condition);
Q3. Which of the following function(s) is/are included in stdlib.h header file? (1 marks)
Correct answer: 1 and 2 only (Pg 191)
Q4. If the break statement is missed in switch statement then, (1 marks)
Correct answer: This may cause a logical error (Pg 76)
Q5. The data type before a function name represents its, (1 marks)
Correct answer: Return Type ( Pg 499)
Q6. Member function tellg() returns the current location of the _____________ pointer. (1 marks)
Correct answer: get() (Pg 215)
Q7. What does 5 | 6 , evaluate to in decimal where ‘|’ is bitwise OR operator? (1 marks)
5 | 6 =
0 1 1 1 = 7
Q8. C is widely known as development language of _______ operating system. (1 marks)
Correct answer: Unix (Pg 12)
Q9. the result of arithmetic expression 6+27/3*3? (1 marks)
Correct answer: 9
Q10. How many bytes are occupied by declaring following array of characters? (1 marks)
char str[] = “programming”;
Correct answer: 12
Q11. the correct syntax for initialization of pointer ptr with string "programming"? (1 marks)
Correct answer: char *ptr = “programming” ;
pg 166
array element in each array initialized with a single character enclosed in single quote. pg 21 While assigning a character value to a char type variable single quotes are used around the character as ‘a’.
Q12. What will be the result of expression x%= 2, if x = 7? (1 marks)
Q13. UNIX has been developed in ________ language. (1 marks)
Q14. Declaring structures does not mean that memory is allocated. (1 marks)
Related CS201 files
All CS201 files →- CS201 Midterm Past Papers by Attiq Kundi Midterm PDF 2.3 MB
- CS201 Midterm Solved File 1 by Team Hadi Midterm PDF 4 MB
- CS201 Midterm Solved Subjective with References by Moaaz Midterm PDF 1.3 MB
- CS201 Midterm Solved MCQs with References by Moaaz and Asad Midterm PDF 270 KB
- CS201 Highlighted Handouts by Qalb-e-Momin Highlighted PDF 6.2 MB
- CS201 Quiz 1 Set 4 Quiz PDF 857 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.