Skip to content
VUBuddy

CS201 Quiz 1 Set 4

Introduction to Programming PDF 857 KBUpdated 23 Oct 2026
Quiz CS201 Quiz 1 Set 4 PDF 857 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
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. What will be the result of arithmetic expression 5+25/5*5?

  1. 9
  2. 6
  3. 45
  4. 30

Correct answer: 30

Q2. If x = 11, and x %= 3, then value of x will be ___________.

  1. 0
  2. 11
  3. 3
  4. 2

Correct answer: 2

Q3. ________ loop is mostly used to perform repetition of a tasks for a known number of times.

  1. Do-While
  2. While
  3. For
  4. Nested Loop

Correct answer: For

Q4. In while loop the condition is checked __________ the execution of loop.

  1. During
  2. Before
  3. At any time
  4. After

Correct answer: Before

Q5. Which of the following is not a valid variable name in C++?

  1. NameOfStudent
  2. nameOfStudent
  3. _studentName

Q6. Which of the following best describes a compiler?

  1. Checks for syntax errors but does not translate the code
  2. Executes machine code directly without any translation
  3. Translates code line-by-line and executes it immediately
  4. Translates the entire source code into machine code before execution

Correct answer: Translates the entire source code into machine code before execution

Q7. We comment the code, because it makes program __________________ .

  1. Complex to understand
  2. Heavy i.e. more space is needed for executable
  3. Difficult to compile
  4. Easy to understand

Correct answer: Easy to understand

Q8. If int a = 17; int b = 3; double c = a / b; What will be value of variable c?

  1. 5
  2. 5.6
  3. 5.7
  4. 5.5

Correct answer: 5

Q9. ________ stops execution at the line that contains error(s) in the code.

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

Correct answer: Interpreter

Q10. A _____________is a precise sequence of steps to solve a particular problem.

  1. Program
  2. Code
  3. Statement
  4. Analysis

Correct answer: Program

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.