
SDF-1 Quiz

Quiz
•
Computers
•
University
•
Hard
Dr. Pal
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 2 * 3 - 4 / 2 in C++?
4
5
6
7
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what is the value of sizeof(char) on a typical system?
1
2
4
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet in C?
int x = 5;
int y = x++;
cout << x << " " << y;
5 5
6 5
6 6
5 6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid data type in C?
long double
wchar_t
byte
unsigned int
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression (5 > 3) ? 1 : 0 in C?
1
0
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code in C?
int i = 1;
do {
cout << i << " ";
i++;
} while (i <= 5);
1 2 3 4 5
1 2 3 4
1 2 3
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following C code snippet do?
int i = 0;
while (i < 5) {
i++;
if (i % 2 == 0)
continue;
cout << i << " ";
}
It prints even numbers from 1 to 5.
It prints odd numbers from 1 to 5.
It does not print anything
It results in a compilation error.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C++ Final Quiz 2 - String & Character Functions

Quiz
•
University
10 questions
Ujian Tengah Semester Struktur Data

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
10 questions
Basics of C

Quiz
•
University
15 questions
CPA - PROGRAMMING ESSENTIALS IN C++ (CISCO)

Quiz
•
University
5 questions
ARRAY C++

Quiz
•
University
13 questions
UTSSKDP1

Quiz
•
University
10 questions
cp06-01-1D-Array

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University