CS201 Midterm Preparation Part 1 by Muhammad
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 1.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 2, 3, 4 of 77. Download the file for all 77 pages.
- 0
- 1
3. 2
4. 3
- In C++, a variable can be declared anywhere in the program this will increase ________.
- In Flow Chart, flow of control is represented by ________.
1. Rectangle
- Circle
- Diamomd
4. Arrow
- The only operator that the compiler overloads for user define data type by default is
- Once we have defined a symbolic constant value using #define, that value ________ during program execution
1. can be changed
2. cannot be changed
- varies
4. becomes zero
- The function write() takes ________ as parameter(s).
1. String of pointer type
2. String of variable lengths, no. of bytes to be read and flags
3. Poimter array of characters and a delimiter
4. String and no. of bytes to be written
- ________ will be used for enclosing function statements into a block.
- " "
- ()
- []
4. {}
8. What will be the result of the expression k = ++m; if initially k = 0 and m = 4?
- 0
9. What will be the correct syntax for initialization of a pointer ptr with string "programming"?
10. < and > both are ________ operators.
1. Arithmetic
2. Relational
- Logical
4. Mathematical
11. ________ are not available in C language.
12. How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed? intPtr += 2 ;
- 2
- 4
3. 8
4. 12
13. ostream is a ________ operator.
1. dependent
- member
3. standalone
14. ________ variables are those that are defined outside of main.
15. ________ will return the number of bytes reserved for a variable or data type.
16. What will be the output of the following c++ code? #include<iostream.h> #define max 100 main() 4.
None of the given
1.
Local
2.
Dynamic
3.
Globa
l
4.
Related CS201 files
All CS201 files →- CS201 Midterm MCQs 2020 Midterm PDF 2.3 MB
- CS201 Midterm Solved MCQs with References by Aniqa Midterm PDF 605 KB
- CS201 Midterm Past Paper Spring 2010 Midterm DOC 20 KB
- CS201 Midterm Past Papers Updated by Attiq Kundi Midterm PDF 2.5 MB
- CS201 Complete Handouts Handout PDF 3.4 MB
- CS201 Important MCQs MCQs PDF 2.5 MB
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.