Skip to content
VUBuddy

CS201P Quiz 1 2026

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

VU QUIZ REPORT

Subject: CS201P

Quiz Completed: 4/27/2026, 5:07:07 PM Total Questions: 10

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

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

Correct answer: char

What will be the output of following C++ program? #include 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; } A. The sum is: 18 B. The sum is: 20 C. The sum is: 19

D. The sum is: 16

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

A. Compiler

B. Linker C. Loader D. Debugger C/C++ has many libraries which contain variables and function names normally starting with ____. A. Hash B. Hyphen C. Semi-Colon

D. Underscore

In C++, cout is known as ______. A. input stream B. file stream C. error stream

D. output stream

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

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

Correct answer: X = X + 3

Selected Answer: C

A binary operator has _____ operands. A. One B. Three

C. Two

D. Four

Selected Answer: C

Learning “how to program” is important, because it develops _______ and problem-solving abilities.

A. Analytical

B. Reading C. Writing D. Listening

In C/C++, which of the following data type is used to store real numbers?

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

Correct answer: float

Short data type store ______ bytes of memory. A. 3 B. 4 C. 1

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.