Skip to content
VUBuddy

CS201P Quiz 1

Introduction to Programming (Practical) PDF 857 KBUpdated 23 Oct 2026
Quiz CS201P Quiz 1 PDF 857 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 857 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 857 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 of 2. Download the file for all 2 pages.

Q1. The coding of a program is translated into machine language by ______.

  1. Loader
  2. Debugger
  3. Linker
  4. Compiler

Correct answer: Compiler

Q2. Short data type store ______ bytes of memory.

  1. 1
  2. 3
  3. 2
  4. 4

Correct answer: 2

Q3. Normally, the float data type is half of the size of ___________.

  1. int
  2. double
  3. char
  4. short

Correct answer: double

Q4. Which of the following expression is correct in C/C++ language?

  1. Y + X = 7
  2. X + 5 = Y + 7
  3. 3 = X + 3
  4. X = X + 3

Correct answer: X = X + 3

Q5. C/C++ has many libraries which contain variables and function names normally starting with ____.

  1. Semi-Colon
  2. Hyphen
  3. Underscore
  4. Hash

Correct answer: Underscore

Q6. Which data type from the following will take lesser space in memory?

  1. short
  2. char
  3. int
  4. float

Correct answer: char

Q7. A binary operator has _____ operands.

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

Correct answer: Two

Q8. What will be the output of the following code? int x = 15; int y = 10; int z = 5; cout << x * x - 4 * y * z;

  1. -25
  2. 5
  3. 25
  4. -5

Correct answer: 25

Q9. Suppose we have an integer variable named “num” with 4567 as its value, then what will be the resulting value for the expression “num/100”?

  1. 45
  2. 456.7
  3. 4
  4. 456

Correct answer: 45

Q10. What will be the output of following C++ program? #include <iostream> using namespace std; int main() { int num1 = 10; int num2 = 20/3; int sum; sum = num1 + num2; cout << "The sum is: " << sum << endl; return 0; }

  1. The sum is: 19
  2. The sum is: 20
  3. The sum is: 16
  4. The sum is: 18

Correct answer: The sum is: 16

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P 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.