
MCQ BMC-151

Quiz
•
Computers
•
University
•
Easy
Gunjan Verma
Used 2+ times
FREE Resource
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?
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Strings

Quiz
•
University
20 questions
CCE-III Programming in C Language

Quiz
•
University
18 questions
Programming in C language

Quiz
•
12th Grade - University
15 questions
Python Basics

Quiz
•
KG - University
20 questions
C programming syntax quiz

Quiz
•
University
16 questions
UC_TM03_Arrays_Functions

Quiz
•
University - Professi...
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
25 questions
Compro. Final1/64 part2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University