- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 857 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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 ______.
Correct answer: Compiler
Q2. Short data type store ______ bytes of memory.
Correct answer: 2
Q3. Normally, the float data type is half of the size of ___________.
Correct answer: double
Q4. Which of the following expression is correct in C/C++ language?
Correct answer: X = X + 3
Q5. C/C++ has many libraries which contain variables and function names normally starting with ____.
Correct answer: Underscore
Q6. Which data type from the following will take lesser space in memory?
Correct answer: char
Q7. A binary operator has _____ operands.
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;
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”?
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; }
Correct answer: The sum is: 16
Related CS201P files
All CS201P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.