Skip to content
VUBuddy

CS201P Lab Quiz 7 by Iqra Azhar

Introduction to Programming (Practical) PDF 473 KBUpdated 23 Oct 2026
Quiz CS201P Lab Quiz 7 by Iqra Azhar PDF 473 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 473 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 473 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 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

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P 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.