Skip to content
VUBuddy

CS201 Midterm Past Papers by Junaid

Introduction to Programming PDF 1.2 MBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Past Papers by Junaid PDF 1.2 MB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 1.2 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.2 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 2, 3, 4 of 23. Download the file for all 23 pages.

Q1. What is the other name of the variable?

 Identifier

  •  Visual
  •  Static
  •  Constant

Q2. Which of the Following is true about streams?

  1. It is a sequence of bytes
  2. It is an ordered sequence
  3. All bytes can go trough the stream simultaneously
  4. Bytes that enters first into the stream will go out at last
  •  A &D
  •  A only
  •  C only

 A & B

Q3. When No. of repetition is know then we use the ------ structure to perform repetition tasks.

  •  While loop

 For loop

  •  Switch

Q4. Shifting the binary number is similar to shifting the------ number.

  •  Base 7

 Decimal

  •  Hexadecimal
  •  octal

Q5. We can read, write and manipulate the same file using ---------------.

  •  Stdio.h

 Fsteram. h

  •  Iomanp.h
  •  Iostream.h

Q6. In do while loop the , condition is checked ----------- one execution of loop.

  •  Before
  •  During
  •  At Any time

 After

Q7. < , <=, >, >= are called ----- operators.

  •  Arithmetic
  •  Conational
  •  Logical

 Relational

Q8. For breaking complex problem into smaller pieces we use ------------.

 Function

  •  Loops
  •  If/else
  •  Break statement

Q9. In three – dimensional array. We use------- ‘for loop(s)’ to populate the array.

 3

  •  2
  •  1
  •  4

Q10. a = a +1: can be written as ---------------

  •  1 + a = a:
  •  a+a+1

 a+=1

  •  a+1

Q11. Continue statement usually force the immediate ------ iteration of the loop .

  •  last
  •  previous
  •  first

 next

Q12. If a file is opened with ios: : out mode . then -----------------.

  •  We can write in this file
  •  Content of file discarded

 A new file is created

  •  File is deleted
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.