- Type
- MCQs
- Course
- CS201 Introduction to Programming
- Size
- PDF 606 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 48. Download the file for all 48 pages.
- How many times the following loop will execute? int j = 3; while(j > 0) { cout << " Statements" << endl; j -= 2; }
- 0
- 1
- 2
- 3
- In C++, a variable can be declared anywhere in the program this will increase ________.
- writability
- readability
- portability
- efficiency
3. In Flow Chart, flow of control is represented by
- Rectangle
- Circle
- Diamomd
- Arrow
4. The only operator that the compiler overloads for user define data type by default is
- Plus (+) operator
- MInus (-) operator
- Assignment (=) operator
- Equal (==) operator
- Once we have defined a symbolic constant value using #define, that value ________ during program execution
- can be changed
- cannot be changed
- varies
- becomes zero
- The function write() takes ________ as parameter(s).
- String of pointer type
- String of variable lengths, no. of bytes to be read and flags
- Poimter array of characters and a delimiter
- String and no. of bytes to be written
- ________ will be used for enclosing function statements into a block.
- " "
- ()
- []
- {}
Q8. What will be the result of the expression k = ++m; if initially k = 0 and m = 4?
- 0
- 5
- 6
- 4
Q9. What will be the correct syntax for initialization of a pointer ptr with string "programming"?
- char ptr = 'programming';
- char *ptr = "programming";
- char *ptr = 'programming';
- *ptr = "programming";
10. < and > both are ________ operators.
- Arithmetic
- Relational
- Logical
- Mathematical
11. ________ are not available in C language.
- User defned functions
- Built in functions
- Library functions
- Inline functions
12. How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed? intPtr += 2 ;
- 2
- 4
- 8
- 12
13. ostream is a ________ operator.
- dependent
- member
- standalone
- None of the given
14. ________ variables are those that are defined outside of main.
- Local
- Dynamic
- Global
- Static
15. ________ will return the number of bytes reserved for a variable or data type.
- sizeof operator
- free operator
- void pointer
- new operator
16.
Related CS201 files
All CS201 files →- CS201 Highlighted Handouts by VUBuddy Highlighted PDF 3.8 MB
- CS201 Final Term Solved Papers 2 by Waqar Siddhu Final term PDF 3.4 MB
- CS201 Quiz 4 by Iqra Azhar Quiz PDF 676 KB
- CS201 Past Papers File 1 Set 2 by Sir Afzal Quiz PDF 7.7 MB
- CS201 All Term Papers Pages 1-63 by Eagle Eye Quiz PDF 1.1 MB
- CS201 Quiz 3 2023 Quiz PDF 897 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.