OOP2023_B11B12Quiz_February06
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
MR ARORA
Used 1+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Assuming size of pointer is 4 bytes and size of int is also 4 bytes, pick the most correct answer from the given options that can correctly describe about the three statements written in code snippet.
ii) and iii) would result in compile error but i) would compile and result in size as 4.
Only i) would compile successfully and it would return size as 4.
i), ii) and iii) would compile successfully and size of each would be same i.e. 4
i), ii) and iii) would compile successfully but the size of each would be different and would be decided at run time.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of the given code.
No output
Compile time error
Run time error
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Pick the best statement for the given C program snippet.
Assigning (void *)0 to pVoid isn’t correct because memory hasn’t been allocated. That’s why no compile error but it'll result in run time error.
Assigning (void *)0 to pVoid isn’t correct because a hard coded value (here zero i.e. 0) can’t assigned to any pointer. That’s why it'll result in compile error.
No compile issue and no run time issue. And the size of the void pointer i.e. pVoid would equal to size of int.
sizeof() operator isn’t defined for a pointer of void type.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of the given code.
01234PP
0PP1PP2PP3PP4PP
Compilation Error
PP01234
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the given variable declarations and definitions in C
Both i) and iii) are valid.
Only i) is valid.
Both i) and ii) are valid.
All are valid.
Similar Resources on Wayground
10 questions
PYTHON BASICS PART 1
Quiz
•
University
10 questions
System Analysis & Design
Quiz
•
University
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
Inteligencia Artificial
Quiz
•
University
10 questions
Creating tables in HTML
Quiz
•
University
10 questions
Website Usability and UX
Quiz
•
University
10 questions
Access 1
Quiz
•
University
10 questions
Lists
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
