
Coding Relay MCQ

Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the output of the following C++ code?
#include <iostream>
using namespace std;
int main() {
int x = 5;
cout << x++ * ++x;
return 0;
}
Back
Undefined Behaviour
2.
FLASHCARD QUESTION
Front
What is the size of int in C++ (typically on a 64-bit system)?
Back
4 bytes
3.
FLASHCARD QUESTION
Front
What will happen if return 0; is missing in main() function in C++?
Back
Program Runs Successfully
4.
FLASHCARD QUESTION
Front
What is the default value of a boolean variable in Java?
Back
false
5.
FLASHCARD QUESTION
Front
Which data structure is most efficient for implementing a priority queue?
Back
Binary Heap
6.
FLASHCARD QUESTION
Front
What does the following Python code print?
def func(a, b=2):
return a * b
print(func(3))
Back
6
7.
FLASHCARD QUESTION
Front
What will be the output of the following Java code?
class Test { public static void main(String[] args) { String s1 = "Java"; String s2 = new String("Java"); System.out.println(s1 == s2); } }
Back
false
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Sets Review

Flashcard
•
12th Grade - University
22 questions
Review JavaScript

Flashcard
•
11th Grade - University
20 questions
round2,flashcard-1

Flashcard
•
University
20 questions
Conocimientos básicos de Python

Flashcard
•
University
21 questions
Java Loops

Flashcard
•
KG
17 questions
Java Basics

Flashcard
•
12th Grade
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
20 questions
U1 Vocab Practice (PLTW Cyber)

Flashcard
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University