
OOP2023_B9A1Quiz_January24
Authored by MR ARORA
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Predict the output of the given code.
address of main
compiler error
runtime error
some random value
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, parameters are always
passed by value
passed by reference
passed by value result
Non-pointer variables are passed by value and pointers are passed by reference
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output of the given code.
7
12
1
0
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is true about return type of functions in C?
Functions can return any type
Functions can return any type except array and functions
Functions can return any type except array, functions and union
Functions can return any type except array, functions, function pointer and union
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In order to exchange the values of two variables a and b:
Call swap (a, b)
swap(a, b) cannot be used as it does not return any value
Call swap (&a, &b)
swap(a, b) cannot be used as the parameters passed by value
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?