Skip to content
VUBuddy

CS201 Midterm Solved MCQs with References by Aniqa

Introduction to Programming PDF 605 KBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Solved MCQs with References by Aniqa PDF 605 KB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 605 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 605 KB

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 22. Download the file for all 22 pages.

Q1. Compiler is a

System software

Application Software Driver Editor

a+system+software%22&source=bl&ots=iSKObzG2h5&sig=S_IlDilOXTgnIKvxdSOJN0lZZ8o&hl =en&sa=X&ei=dtB2UOqdFeWK4gSsrIDQCQ&ved=0CEoQ6AEwBw#v=onepage&q=%22compil er%20is%20a%20system%20software%22&f=false

Q2. If Num is an integer variable then Num++ means,

Add 1 two times with Num

Add 1 with Num

Add 2 with Num Subtract 2 from Num

Q3. combinations of

values that can be stored in n bits is 2n. For example: 1 bit can hold 2 = 2^1 = 2 possible values (0 or 1) 2 bits can hold 2 × 2 = 2^2 = 4 possible values so 8 bits(one byte) = 2^8 = 256

Q4. In C/C++ language the header file which is used to perform useful task and manipulation of character data is

cplext.h

ctype.h pg 188

stdio.h delay.h

Q5. Default case in switch statement is,

Must

Optional

syntax error Necessary

Q6. When break statement is encountered in switch statement, it

Stops the entire program Stops the execution of current statement

Exits from switch statement

Q7. What will be the result of arithmetic expression 6+27/3*3?

Q8. 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[] ;

Q9. How many dimensions does n-dimensional array has?

n dimensions

2n dimensions (n+1) dimensions (n-1) dimensions (Array starts from 0th element)

Q10. What will be the correct syntax to access the value of fourth element of an array using pointer ptr?

ptr[3]

(ptr+3) *(ptr+3) Both 1and 3

Q11. Which of the following values C++ use to represent true and false? 1 and 0

1 and -1 11 and 00 Any numerical value

Q12. Declaring structures does not mean that memory is allocated. True

False

Q13. For which array, the size of the array should be one more than the number of elements in an array?

Int double float

char Pg113

Q14. If a variable is passed by value to a function and the function makes some changes to that variable then it

Does not affect the original variable pg 83

affects the original variable causes syntax error

Q15. In C/C++ the #include is called,

Header file

Preprocessor Directive pg 269

Statement Function

Q16. Loops are ------------------------ Structure.

Decision

Repetition pg 560

Sequential Hierarchical

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.