Skip to content
VUBuddy

CS201 Quiz 3 by VU Topper RM

Introduction to Programming PDF 614 KBUpdated 23 Oct 2026
Quiz CS201 Quiz 3 by VU Topper RM PDF 614 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 614 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 614 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 2, 3, 4 of 24. Download the file for all 24 pages.

A structure is a collection of _____________under a single name. A. Array B. Pointer C. Datatype

D. Variables Page 229

The memory allocation functions return a chunk of memory with a pointer of type_______________. A. Ptr

B. Void Page 281

C. Float D. Integer

A file opened with the help of ______________ can be used for both input and output.

A. Fstream Page 220

B. Ofstream C. Iostream D. Ifstream

Macros are categorized into _________ type(s). A. One

B. Two Page 275

C. Five D. Three All the preprocessors directives starts with ________. A. - B. &

C. # Page 279

D. $

When we include the header file in the angle brackets the compiler searches for it in ______________. A. All the drives B. Current folder

C. Current directory Page 269

D. Specific directory

For accessing data members we use _________ operator

A. .dot

B. Plus+ C. Division / D. multiplication *

The dynamic memory allocation uses ___________ whereas static memory allocation uses _________. A. stack , lists B. array , stack

C. Heap,stack

D. classes , array A file opened with ________________ is used for input and cannot be used for output.

A. Ifstream Page 220

B. Ostream C. Istream D. Fstream

The data, contained in the structure, is defined in the ______________. A. None B. Parenthesis

C. Curly braces Page 229

D. Inverted commas

student s[100]; means that ‘s’ is an array of hundred students of type ‘student’ structure. What will be the correct statement to access the ‘name’ data element of the fifty sixth student from the array?

  1. s.name[56];
  2. s[55].name;
  3. s.name[55];
  4. s[56].name;

Correct answer: s.name[55];

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

  1. cout<<1;
  2. cin >> number ;
  3. result = number >> 1 ;
  4. result = number << 1 ; Google

Correct answer: result = number << 1 ; Google

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.