CS201P Lab Quiz 7 by Iqra Azhar
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 473 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 5. Download the file for all 5 pages.
In C++, default visibility of structure is ______.
In C++, the default visibility of a structure (or class) is "private."
In C++, __________ function is used to write a character into a file while _______ is used to get a character from a file.
seekg(), tellg() getc(), putc() putc(), getc() tellg(), seekg() In C++, putc() is used to write a character into a file, and getc() is used to get a character from a file.
In C++, which operator is used while accessing through the pointer to structure?S elect the correct option
In C++, when accessing files randomly, which function is used to get current pointer position inside a file?
tellg() seekp() seekg() tellp() seekg() Which of the following statement is true regarding structures?
Variables which are part of a structure are called Member Functions Variables which are part of a structure are called Data Member sAll data members must have the same data type The correct statement regarding structures is: " Variables which are part of a structure are called Data Members."
Which of the following statement is true regarding structures?
Variables which are part of a structure are called Data Members Variables which are part of a structure are called Member Functions All data members must have the same data type All data members must have the same memory space The correct statement regarding structures is: " Variables which are part of a structure are called Data Members."
Functions seekg () and seekp () require an argument of type ____ to let them know how many bytes to move forward or backward.
Float Int Double long
long
In C++, which operator is used while accessing through the pointer to structure?
The bit manipulation operator ______________ is used to check whether a specific bit is set or not. Select the correct option
& (bitwise AND)
The bit manipulation operator ______________ is used to set a specific bit. Select the correct option
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.