Skip to content
VUBuddy

CS201 Final Term Quiz 3 July 2023 Part 4 by Miss Mehwish

Introduction to Programming PDF 659 KBUpdated 23 Oct 2026
Final term past paper CS201 Final Term Quiz 3 July 2023 Part 4 by Miss Mehwish PDF 659 KB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 659 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 659 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 4. Download the file for all 4 pages.

We also provide Past papers for Mids. and Finals Cross Check your answers before submitting directly from the file. We are not responsible for 100% correction as human error exists

ِِبِسْم · ِِالل · ِِالرَّحْمٰن · ِِالرَّحِيْم

Q1. How many bits form a byte?

  1. 2
  2. 4
  3. 6
  4. 8

Correct option: d) 8

Q2. Which of the following code segment represents a left shift operator? Options:

  1. result = number >> 1;
  2. result = number << 1;
  3. cout << 1;
  4. cin >> number;

Correct option: B) result = number << 1; result = number &lt;&lt; 1;

Q3. The dynamic memory allocation uses ___________ whereas static memory allocation uses

  1. array, stack
  2. classes, array
  3. stack, lists
  4. heap, stack

Correct option: d) heap, stack

Q4. In _____________, we have different data members and all of these have their own memory space. Options:

  1. union
  2. construct
  3. structures
  4. None of the given

Correct option: a) union

Q5. With the use of dynamic allocation of memory, the system resources can be _______________. Options:

  1. all of the given options
  2. used efficiently
  3. used carelessly
  4. wasted

Correct option: b) used efficiently

Q6. Initializing the data member within the class is _____________. Options:

  1. a syntax error
  2. not an error
  3. a logical error
  4. a runtime error

Correct option: b) not an error

Q7. "a = a | b;" can be written as ________________.

  1. a = | b;
  2. a == b;
  3. a = b;
  4. a |= b;

Correct option: d) a |= b;

Q8. We should not use variable names that start with ____________ because in C++, there are lots of internal constants and symbolic names that start with it.

  1. none of the given options
  2. upper case alphabets
  3. double underscore
  4. lower case alphabets

Correct option: c) double underscore

Q9. The original value remains unchanged in _____________. Options:

  1. Call by value
  2. Dynamic Variables
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.