Skip to content
VUBuddy

CS201 Solved Paper 3 Spring 2009 with References by ZS Team

Introduction to Programming PDF 132 KBUpdated 23 Oct 2026
Quiz CS201 Solved Paper 3 Spring 2009 with References by ZS Team PDF 132 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 132 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 132 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 5. Download the file for all 5 pages.

MIDTERM EXAMINATION

Spring 2009 CS201Introduction to Programming

Solved by vuZs Team

Q1. Please choose one_______ (1 marks)

There are mainly------------------- types of software

  1. Two
  2. Three
  3. Four
  4. Five

Correct answer: Two

Software is categorized into two main categories o System Software o Application Software

Q2. Please choose one____ (1 marks)

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

  1. Header file
  2. Preprocessor Directive
  3. Statement
  4. Function

Correct answer: Preprocessor Directive

Q3. Please choose one___________ (1 marks)

&& is------------------ operator.

  1. An arithmetic
  2. Logical
  3. Relational
  4. Unary

Correct answer: Logical

we use logical operators ( && and || ) for AND and OR respectively with relational operators.

Q4. Please choose one_______ (1 marks)

In flow chart, the symbol used for decision making is,

  1. Rectangle
  2. Circle
  3. Arrow
  4. Diamond

Correct answer: Diamond

Q5. Please choose one______ (1 marks)

The correct syntax of do-while loop is,

  1. (condition ) while; do { statements; };
  2. { statements; } do-while ();
  3. while(condition); do { statements; };
  4. do { statements; } while (condition);

Correct answer: do { statements; } while (condition);

Q6. Please choose one___________ (1 marks)

C++ views each file as a sequential stream of________________ .

  1. Bytes
  2. Bits
  3. 0’s or 1’s
  4. Words

Correct answer: Bytes

Q7. Please choose one__________________ (1 marks)

If the elements of an array are already sorted then the useful search algorithm is,

  1. Linear search
  2. Binary search
  3. Quick search
  4. Random search

Correct answer: Binary search

In binary search algorithm, the ‘divide and conquer’ strategy is applied. This plies only to sorted arrays in ascending or descending order.

Q8. Please choose one___________ (1 marks)

The address operator (&) can be used with,

  1. Statement
  2. Expression
  3. Variable
  4. Constant

Correct answer: Variable

Q9. Please choose one_______________ (1 marks)

When a pointer is incremented, it actually jumps the number of memory addresses

  1. According to data type
  2. 1 byte exactly
  3. 1 bit exactly
  4. A pointer variable can not be incremented

Correct answer: According to data type

Q10. Please choose one______________ (1 marks)

Each pass through a loop is called a/an

  1. enumeration
  2. iteration
  3. culmination
  4. pass through

Correct answer: iteration

Q11. Please choose one_____________ (1 marks)

Call by reference mechanism should be used in a program when there is i. large amount of data to be passed ii. small amount of data to be passed iii. need to change the passed data iv. no need to change the passed data Choose the appropriate option for the above case.

  1. (i) and (ii) only
  2. (i) and (iii) only
  3. (ii) and (iii) only
  4. (ii) and (iv) only

Correct answer: (i) and (iii) only

Q12. Please choose one________ (1 marks)

Which of the following is the starting index of an array in C++?

  1. 0
  2. 1
  3. -1
  4. any number

Q13. Please choose one________ (1 marks)

The return type of a function that do not return any value must be __________

  1. int
  2. void
  3. double
  4. float

Correct answer: void

Q14. Please choose one_________ (1 marks)

Which of the following is an extension of header file?

  1. .exe
  2. .txt
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.