CS201 Midterm Past Papers Updated 15 June 2022 by Attiq Kundi
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 3.7 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 229. Download the file for all 229 pages.
Which step is not not performed during a proper program design?
(Write details about the performance of program)
correct answer
How many elements are stored in the following ? int matrix [4][5];
(20) correct answer
Which of the following is not a valid variable name in c++?
( studentName) correct answer
If an array has 50 elements. What is allowable range of subscripts?
(0-49) correct answer
<. <=.> .>= are called ----------------------- operators.
(Relational)
correct answer
Why we use “cin “?
(To read data from keyboard) correct answer
!(x<3)means in c++ that
(x is greater than 3) correct answer
The data in the memory is ---------
(volatile) correct answer
Each array declaration must provide the information about all these things except -----
What will be the output of the program if x=10? If (x!=0&&x<=10)
Cout <<”condation 1 is true”;
If(x>=10 && x<=20)
Condation 1 is true condation 2 is true
C is widely known developpment language of operating system.
Windows
A repetition statement specifies that an action is to be continued while some
Condition
is a substitute of multiple if statement.
If—elseif statement
If a finds an error. It stops translating without generating any executable code.
Compiler
Function prototype is wrriten .
Before call of that function
The is an unconditional branch of execution .
Goto statement
What will be the output of the following code snippet?
String str1 = “Hello beautiful”; String str2 = “yes we can”; String str3 = strcpy(str1,str2); Cout<<str3<<endI;
Hello beautiful Yes we can
In two dimensional array .We use „for oop(s)‟to populate the array.
eof is used to check for the of file when a file is being read.
End
How many times the following loop will execute? Int j = 3; While(j>0)
Cout << “statements” << endI; J=2;
Null character is used to indicate the of string.
End
There is a pointer named ptr of type float. Which type of variable address can be stored by ptr?
Float
How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed?
intPtr +=2;
We must include the header file to convert the value of one type into another type using built-infunctions.
iostream.h
Use of word processor for writing the code of a program is not good because.
Related CS201 files
All CS201 files →- CS201 Midterm Past Papers Updated 28 June 2022 by Attiq Kundi Midterm PDF 3.7 MB
- CS201 Midterm MCQs 2020 Midterm PDF 2.3 MB
- CS201 Midterm Quizzes MCQs 2020 Midterm PDF 478 KB
- CS201 Midterm Grand Quiz 2020 Midterm DOCX 2 MB
- CS201 Highlighted Handouts by Qalb-e-Momin Highlighted PDF 6.2 MB
- CS201 Lecture 7 Quiz DOCX 16 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.