
Sample
Authored by Gunjan Verma
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does the following declaration mean?
int (*ptr)[5];
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following can be checked in a switch statement?
Integer values
Character values
Both a and b
Floating-point values
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Identify the error in the code:
for (int i = 0; i < 5; i--) {
printf("%d", i);
}
Infinite loop
Syntax Error
i is undeclared
Logical error
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the correct syntax for declaring a function that does not return a value?
a) int func();
b) void func();
c) func();
d) function func();
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which type of variables can retain their values between function calls?
a) auto
b) register
c) static
d) extern
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is an incorrect function prototype?
a) int func(int a, int b);
b) float func(int, float);
c) double func(double);
d) int func(a, b);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
int arr[] = {1, 2, 3, 4};
printf("%d", *(arr + 2));
a) 1
b) 2
c) 3
d) 4
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?
Similar Resources on Wayground
15 questions
Revisão - Unidade I - Teoria da Computação
Quiz
•
University
18 questions
Multiplexers
Quiz
•
University
15 questions
GDSC Intro Quiz
Quiz
•
University
15 questions
[CEH4H3] Sistem Tertanam Ganjil 1819 Kuis Online 2
Quiz
•
University
18 questions
Строка CMD
Quiz
•
University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Algoritma Remedial RPL
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade