Skip to content
VUBuddy

CS201 Midterm Mega File

Introduction to Programming PDF 1.4 MBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Mega File PDF 1.4 MB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 1.4 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.4 MB

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 54. Download the file for all 54 pages.

CS201 MID Term 2012 & 2011 SOLVED MCQS · MCQS · structure

Class Function Oop

A union is a user-defined data type that contains only _______from its list of members at a time.

Which of the given file handling modes are similar in their functionality ?

ios::out, ios::trunk

ios::trunc, ios::ate

ios::trunc, ios::nocreate ios::trunc, ios::ate

Which one of the given option is not a mode for reading/writing the data from a file?

In Out

Trunk

Get

In C/C++, the header file used for string manipulation is __________. stdlib.h

string.h

strings.h stype.h

A 2D array multi[5][10] can be accessed using the array name as **multi , this technique is called __________.

C language was evolved from _____ language(s). BASIC C++

B and BCPL

FORTRAN

The __________ statement forces the immediate next iteration of the loop.

Switch Goto

Continue

Break

_________ are very good tools for code reuse. Operators Loops

Functions

Variables

When an argument is passed by reference, ___________

the function cannot access the argument‘s value. a variable is created in the function to hold the argument‘s value. a temporary variable is created in the calling program to hold the argument‘s value. the function accesses the argument’s original value in the calling program.

___________ executes all the lines before error and stops at the line which contains the error. Intrepreter

Compiler

Linker Debugger

Analysis is the -------------- step in designing a program.

Middle Post design

First

Last

Which of the following is the correct function call, having array named student of 10 elements as a parameter?

addRecord(student[]);

addRecord(student);

addRecord(student[10]); addRecord(*student); When an array element is passed to a function, it is passed by ________________.

Reference

data type value data

What is the correct syntax to declare an array of size 10 of int data type?

int [10] name ; name[10] int ;

int name[10] ;

int name[] ;

If we want to copy an array, both arrays need to be of same___________. Elements and size Data and size

Data type and size

Data and data type

Which of the following is the correct syntax to print multiple values or variables in a single command using cout?

cout << "H" << x << "\n";

cout << " Hello" + x + "\n"; cout << "H", x, "\n"; cout << ("H" & x & "\n");

Which one of the statements given below is equivalent to x %= 5?

x = % x 5

x = x % 5

x = % 5 x % x = 5

The condition in loop should be a(n) ___________.

Arithmatic Expression Constant Expression

Boolean Expression

Primary Expression

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.