Skip to content
VUBuddy

CS201 Quiz 1 2021

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

CS201 updated quiz 2021 Searching file for quiz 1 ORANGE MONKEY TEAM

98% confirm

  1. Special name which is substituted in code by its definition and as a result we get an expanded code is called

Macro · 2. A=a+1, can be written as ______________ · A+=1

  1. The compiler generates ___________ automatically.

Constructors · 4. The data members of the class are initialized _____ ·  Explicitly write keyword private in the class definition ·  Separate the interface and implementation ·  The default constructor has no arguments ·  Constructor has the same name as of class

 Initializing the data members in the definition of the class is a syntax error

  1. ___________ for parameters is also done for inline functions.

Automatic type checking

  1. An instance of a class is called ______________.

Object

  1. With the use of dynamic allocation of memory, the system resources can be ______.

Used efficiently

8. When we include the header file in the angle brackets the compiler searches for it in

  1. ____________ is a special type of pointer we have to cast it before we use it.

Void

10. Multiplicative, additive and assignment operators are _________ operators Binary

11. The memory allocation functions return a chunk of memory with a pointer of type

Void

  1. Default constructor takes __________.

No parameters

  1. In a class we can have ____________ constructor(s).

Only one

Q14. Which one of the following is mandatory preprocessor directive for c++?

#include <isotream?

15. Header files provide ________ so the program running on one operating system can run

Accessibility

  1. We should not use such variable names that are starting with _________ because in C++ these are lots of internal constants and symbolic names that start with it.

Double underscore

Q17. Which of the following code segment represents a left shift operator?

Result= number<<1

Q18. Which of the following code segment represent a bitwise And operator?

Q19. Which of the following code segment represent a bitwise OR operator?

I

20. Which of the following code segment represent a Bitwise Exclusive OR operator

21. Which of the following code segment represent a NOT operator

  1. C++ was developed by _____________.

Bejame stroustrup

23. For converting a void type pointer ptr into integer type, the correct syntax is:

int* ptr

  1. A pointer with value NULL is defined in the header files ___________ and ________.

Stdlib.h stddef.h

  1. Constructor is a special function, called whenever we __________.

Instantiate an object of a class

  1. Constructor is itself a _________ of C++ and _________.

Q27. What is the other name of a variable?

Identifier

  1. In shifting operations if zero is inserted at the left most bit, the negative number will become a _________ number.

Positive

  1. A class is _________.

User defined Data type

  1. Bugs can occur due to _______.
  2. The heap memory structure _______.
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.