CS201 Midterm Solved MCQs with References by Aniqa
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 605 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 22. Download the file for all 22 pages.
Q1. Compiler is a
System software
Application Software Driver Editor
a+system+software%22&source=bl&ots=iSKObzG2h5&sig=S_IlDilOXTgnIKvxdSOJN0lZZ8o&hl =en&sa=X&ei=dtB2UOqdFeWK4gSsrIDQCQ&ved=0CEoQ6AEwBw#v=onepage&q=%22compil er%20is%20a%20system%20software%22&f=false
Q2. 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
Q3. combinations of
values that can be stored in n bits is 2n. For example: 1 bit can hold 2 = 2^1 = 2 possible values (0 or 1) 2 bits can hold 2 × 2 = 2^2 = 4 possible values so 8 bits(one byte) = 2^8 = 256
Q4. In C/C++ language the header file which is used to perform useful task and manipulation of character data is
cplext.h
ctype.h pg 188
stdio.h delay.h
Q5. Default case in switch statement is,
Must
Optional
syntax error Necessary
Q6. When break statement is encountered in switch statement, it
Stops the entire program Stops the execution of current statement
Exits from switch statement
Q7. What will be the result of arithmetic expression 6+27/3*3?
Q8. 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[] ;
Q9. How many dimensions does n-dimensional array has?
n dimensions
2n dimensions (n+1) dimensions (n-1) dimensions (Array starts from 0th element)
Q10. 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
Q11. Which of the following values C++ use to represent true and false? 1 and 0
1 and -1 11 and 00 Any numerical value
Q12. Declaring structures does not mean that memory is allocated. True
False
Q13. For which array, the size of the array should be one more than the number of elements in an array?
Int double float
char Pg113
Q14. 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 pg 83
affects the original variable causes syntax error
Q15. In C/C++ the #include is called,
Header file
Preprocessor Directive pg 269
Statement Function
Q16. Loops are ------------------------ Structure.
Decision
Repetition pg 560
Sequential Hierarchical
Related CS201 files
All CS201 files →- CS201 Midterm Preparation Part 1 by Muhammad Midterm PDF 1.6 MB
- CS201 Midterm Merged Papers by Asfand Yarr Midterm PDF 39.8 MB
- CS201 Midterm Grand Quiz Preparation by VU Stars Midterm PDF 11.9 MB
- CS201 Midterm MCQs 2020 Midterm PDF 2.3 MB
- CS201 Highlighted Handouts Set 5 Highlighted PDF 7 MB
- CS201 Solved Grand Quiz Spring 2021 by Riz Mughal Quiz PDF 936 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.