CS201 Midterm Past Papers Updated by Attiq Kundi
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 2.5 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, 3, 4 of 250. Download the file for all 250 pages.
Q1. ; The ASCll code of null character is ---------- --.
( 000)
correct answer
Q2. ; Which step is not not performed during a proper program design?
(Write details about the performance of program)
correct answer
Q3. ; How many elements are stored in the following ? int matrix [4][5];
(20) correct answer
Q4. ; Which of the following is not a valid variable name in c++?
( studentName) correct answer
Q5. ; If an array has 50 elements. What is allowable range of subscripts?
(0-49) correct answer
Q6. ; <. <=.> .>= are called ------------------ operators.
(Relational) correct answer
Q7. ; Why we use “cin “?
(To read data from keyboard)
correct answer
Q8. ; !(x<3)means in c++ that
(x is greater than 3) correct answer
Q9. ; The data in the memory is ---------
(volatile) correct answer
Q10. ; Each array declaration must provide the information about all these things except -----
Cout <<”condation 1 is true”;
If(x>=10 && x<=20)
Condation 1 is true condation 2 is true
Q12. ; C is widely known developpment language of
operating system.
Windows
Q13. ; A repetition statement specifies that an action is to be continued while some
Condation
Q14. is a substitute of multiple if statement.
If—elseif statement
Q15. finds an error. It stops translating without generating any executable code.
Compiler
Q16. ; Function prototype is wrriten .
Before call of that function
Q17. is an unconditional branch of execution .
Goto statement
Q18. ; 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
Q20. ; In two dimensional array .We use
„for oop(s)‟to populate the array.
Q21. ; eof is used to check for the
of file when a file is being read.
End
Q22. ; How many times the following loop will execute?
Int j = 3; While(j>0)
Cout << “statements” << endI; J=2;
Q23. ; Null character is used to indicate the
of string.
End
Q24. ; There is a pointer named ptr of type float. Which type of variable address can be stored by ptr?
Float
Q25. ; How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed?
intPtr +=2;
Q26. ; We must include the header file
to convert the value of one type into another type using built-infunctions.
Related CS201 files
All CS201 files →- CS201 Midterm Solved Quizzes 1-2 Fall 2016 Midterm DOCX 897 KB
- CS201 Midterm Grand Quiz Preparation by VU Stars Midterm PDF 11.9 MB
- 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 Complete Handouts Handout PDF 3.4 MB
- CS201 MCQs by Izhar MCQs PDF 606 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.