
coding relay MCQ

Flashcard
•
Professional Development
•
•
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? Options: a) Array, b) Linked List, c) Heap, d) Stack
Back
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
In the following Java code, what will be the output of the statement System.out.println(s1 == s2);
?
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
Strings, Lists & Tuples

Flashcard
•
9th - 12th Grade
19 questions
CSCI 151 Exam 1 Review

Flashcard
•
University
20 questions
Multi Digit Multiplication

Flashcard
•
5th Grade
18 questions
Code.org CSP Unit 4 Review (23-24)

Flashcard
•
9th - 12th Grade
20 questions
Making Predictions with Probability (TASK CARDS)

Flashcard
•
7th Grade
18 questions
Java Arrays

Flashcard
•
9th - 12th Grade
21 questions
Java Flashcard-1

Flashcard
•
KG - University
20 questions
D142 Activity: Making Inferences + Probability

Flashcard
•
7th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Professional Development
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Soft Skills and Hard Skills Quiz

Quiz
•
12th Grade
10 questions
SMART Goals

Quiz
•
8th - 12th Grade
50 questions
Workplace Readiness Skills - Revival Quizizz

Quiz
•
9th - 12th Grade
15 questions
Essential Skills and Steps for Career Success

Interactive video
•
9th Grade