CS201P Quiz 12 File 2 Jan 2024 by Miss Mehwish
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 183 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 page 1 of 2. Download the file for all 2 pages.
Past Papers for Mids./Finals are also Available
- `calloc()` functions allocates multiple blocks of memory, and each block has:
- A) Different length
- B) Different size
- C) Same size
- D) Same length
Correct option: C) Same size
- If the memory in the free store is not sufficient enough to fulfill the request, `malloc()` function returns:
- A) -1
- B) NULL
- C) 0
- D) 1
Correct option: B) NULL
Q3. Which one is the correct syntax for the declaration of a function that can return a reference?
- A) &function_name datatype (parameter list)
- B) datatype (parameter list) &function_name
- C) datatype& function_name (parameter list)
- D) &datatype function_name (parameter list)
Correct option: C) datatype& function_name (parameter list)
- The data members that are visible only from inside the class and hidden from the outside are known as:
Related CS201P files
All CS201P files →- CS201P Final Term MCQs Spring 2024 Final term PDF 1 MB
- CS201P Lab 12 Quiz by Danish Hanif Quiz PDF 306 KB
- CS201P All Solved Quizzes 2023 by Prince Alvi Quiz PDF 13.3 MB
- CS201P Lab 9-10 Quiz Quiz PDF 607 KB
- CS201P Lab Quiz 9 by Iqra Azhar Quiz PDF 458 KB
- CS201P Quiz 9 Updated Aug 2022 by Attiq Kundi Quiz PDF 659 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.