CS201P Final Term Quiz 7 July 2023 by Miss Mehwish
- Type
- Final term past paper
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 588 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 1, 2, 3 of 6. Download the file for all 6 pages.
We also provide Past papers for Mids. and Finals Cross Check your answers before submitting directly from the file. We are not responsible for 100% correction as human error exists
MCQ 1: Question: What will be the output of the following code?
void sampleFunction(int = 5, float = 4.1, char = 'A'); int main(){ sampleFunction(50, 3.2);
void sampleFunction(int one, float two, char three) { cout << one << ", " << two << ", " << three;
A) 50, 4.1, A B) 5, 4.1, A C) 5, 3.2, A D) 50, 3.2, A
Correct option: D) 50, 3.2, A
MCQ 2: Question: If the memory in the free store is not sufficient enough to fulfill the request, `malloc()` function returns ________. A) 0 B) 1 C) -1 D) NULL
Correct option: D) NULL
MCQ 3: Question: In the following code, what will be the output of `i`?
#include<iostream> using namespace std; int main() { int i; int &j = i; i = 123; cout << " The value of i = " << i;
A) 012345 B) x C) 123 D) 321
Correct option: C) 123
MCQ 4: Question: In C++, `sizeof` operator is used to determine ____________. Options: A) Number of words B) Length of string C) Length of words D) Size of data type
Correct option: D) Size of data type
MCQ 5: Question: The data members that are visible only from inside the class and hidden from the outside are known as: A) Public B) Friend C) Private D) Public and Private
Correct option: C) Private
Related CS201P files
All CS201P files →- CS201P Final Term Quiz 12 File 3 July 2023 by Miss Mehwish Final term PDF 575 KB
- CS201P Final Term Past Papers 2022-23 by VU Stars Final term PDF 3.6 MB
- CS201P Final Term MCQs Spring 2024 Final term PDF 1 MB
- CS201P Final Term Past Papers 2024 by Qalb-e-Momin Final term PDF 27 MB
- CS201P Final Term Quiz by VU Sparky Final term PDF 3.3 MB
- CS201P Quiz 7 Quiz PDF 102 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.