CS201 Midterm Mega File by Adil Alvi
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 10.6 MB
- 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 326. Download the file for all 326 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 (1 marks)
known as development language of _______ operating system.
Correct answer: Unix (Pg 12)
Q9. What will be (1 marks)
the result of arithmetic expression 6+27/3*3?
Correct answer: 9
Q10. How many (1 marks)
bytes are occupied by declaring following array of characters?
char str[] = “programming”;
Correct answer: 12
Q11. What will be (1 marks)
the correct syntax for initialization of pointer ptr with string "programming"?
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)
(pg 12)
Q14. Declaring structures does not mean that memory is allocated. (1 marks)
(Pg 229)
Q15. What will be the value of i and j in the following code segment? (1 marks)
int i, j ; int x[5] = {2, 3, 4, 8, 9} ; int *ptr =&x[2]; i = (*ptr)++ ; j = *ptr++ ;
Q16. When an array element is passed to a function, it is passed by ----------------. (1 marks)
(Pg 266)
data type
Related CS201 files
All CS201 files →- CS201 Midterm Solved File 7 by Team Hadi Midterm PDF 14.4 MB
- CS201 Midterm MCQs Set 2 by VU Topper RM Midterm PDF 690 KB
- CS201 Midterm Mega File Midterm PDF 1.4 MB
- CS201 Final Term Past Papers Mega File Final term PDF 738 KB
- CS201 Highlighted Handouts Set 2 Highlighted PDF 5.2 MB
- CS201 Solution 1 by Junaid Quiz PDF 218 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.