
MCQ BMC-151
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
30 sec • 1 pt
What is the output of the below code snippet?
int i = 0;
while (i < 5) {
if (i == 3) break;
printf("%d ", i);
i++;
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In nested loops, when the break statement is encountered in the inner loop, what happens?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to declare a function prototype for a function func that takes two integers and returns a float?
float func(int a, int b);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following code, what will the output be?
void func(int a) {
a = 10;
}
int main() {
int x = 5;
func(x);
printf("%d", x);
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly describes the scope of a variable declared inside a function?
It is accessible only within that function.
It is accessible throughout the entire program.
It is accessible in all functions of the same file.
It is accessible in all files of the project.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
int multiply(int a, int b) {
return a * b;
}
int main() {
int a = 2, b = 3, c = multiply(a++, b++);
printf("%d %d %d", a, b, c);
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a benefit of using a high-level programming language?
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
Internet Basics
Quiz
•
5th Grade - University
15 questions
ADB Quiz #1
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
20 questions
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
15 questions
GIS Unit III
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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