- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 689 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 2, 3, 4 of 31. Download the file for all 31 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?
Correct answer: s.name[55];
Which of the following code segment represents a left shift operator?
Correct answer: result = number << 1 ; Google
Related CS201 files
All CS201 files →- CS201 Highlighted Handouts by Qalb-e-Momin Highlighted PDF 6.2 MB
- CS201 Midterm Solved File 6 by Team Hadi Midterm PDF 5.8 MB
- CS201 Mega Solved Short Questions Quiz PDF 555 KB
- CS201 Solved Paper 3 Spring 2009 with References by ZS Team Quiz PDF 132 KB
- CS201 Grand Quiz by Waqas Ahmed Quiz PDF 41.3 MB
- CS201 Current Papers Shared by Students Quiz PDF 531 KB
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.