- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 1.4 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 54. Download the file for all 54 pages.
Class Function Oop
A union is a user-defined data type that contains only _______from its list of members at a time.
Which of the given file handling modes are similar in their functionality ?
ios::out, ios::trunk
ios::trunc, ios::ate
ios::trunc, ios::nocreate ios::trunc, ios::ate
Which one of the given option is not a mode for reading/writing the data from a file?
In Out
Trunk
Get
In C/C++, the header file used for string manipulation is __________. stdlib.h
string.h
strings.h stype.h
A 2D array multi[5][10] can be accessed using the array name as **multi , this technique is called __________.
C language was evolved from _____ language(s). BASIC C++
B and BCPL
FORTRAN
The __________ statement forces the immediate next iteration of the loop.
Switch Goto
Continue
Break
_________ are very good tools for code reuse. Operators Loops
Functions
Variables
When an argument is passed by reference, ___________
the function cannot access the argument‘s value. a variable is created in the function to hold the argument‘s value. a temporary variable is created in the calling program to hold the argument‘s value. the function accesses the argument’s original value in the calling program.
___________ executes all the lines before error and stops at the line which contains the error. Intrepreter
Compiler
Linker Debugger
Analysis is the -------------- step in designing a program.
Middle Post design
First
Last
Which of the following is the correct function call, having array named student of 10 elements as a parameter?
addRecord(student[]);
addRecord(student);
addRecord(student[10]); addRecord(*student); When an array element is passed to a function, it is passed by ________________.
Reference
data type value data
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[] ;
If we want to copy an array, both arrays need to be of same___________. Elements and size Data and size
Data type and size
Data and data type
Which of the following is the correct syntax to print multiple values or variables in a single command using cout?
cout << "H" << x << "\n";
cout << " Hello" + x + "\n"; cout << "H", x, "\n"; cout << ("H" & x & "\n");
Which one of the statements given below is equivalent to x %= 5?
x = % x 5
x = x % 5
x = % 5 x % x = 5
The condition in loop should be a(n) ___________.
Arithmatic Expression Constant Expression
Boolean Expression
Primary Expression
Related CS201 files
All CS201 files →- CS201 Midterm Solved MCQs by Waqar Siddhu Midterm PDF 451 KB
- CS201 Midterm Past Papers File 6 Midterm PDF 5.8 MB
- CS201 Midterm Mega File by Adil Alvi Midterm PDF 10.6 MB
- CS201 Final Term All Papers Mega File Final term PDF 1.3 MB
- CS201 Complete Handouts Set 2 Handout PDF 3 MB
- CS201 Quiz 1 Updated May 2023 by Attiq Kundi Quiz PDF 3.3 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.