
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
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
15 questions
Computer Applications in Banking and Finance Quiz
Quiz
•
University
18 questions
Fiber Optic
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University