
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
Firewall and Network Security
Quiz
•
University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
Information Management - QUIZ
Quiz
•
University
15 questions
GAME QUIZ!!
Quiz
•
University
15 questions
ADVACOMT-Quiz No.1 (final term)
Quiz
•
University
18 questions
Lenguaje de Definición de Datos
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University