Skip to content
VUBuddy

CS201 Midterm Past Papers by Attiq Kundi

Introduction to Programming PDF 2.3 MBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Past Papers by Attiq Kundi PDF 2.3 MB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 2.3 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 2.3 MB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 162. Download the file for all 162 pages.

CS201 MID-Term BY Attiq Kundi

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 -----

Q11. ; 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

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_______remains true.

Condation

Q14. ; ______is a substitute of multiple if statement.

If—elseif statement

Q15. ; If a ______finds an error. It stops translating without generating any executable code.

Compiler

Q16. ; Function prototype is wrriten .

Before call of that function

Q17. ; The____ 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;

All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.