
Quiz 1 Review - CS125
Authored by Autumn Peterson
Computers
University
Used 23+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: 'int' is an example of a built-in data type
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this code print?
int num1 = 9, num2 = 4,
if (num1 >= num2) {
if (num1 == num2) {
printf("Result: %d = %d",num1,num2); }
else {
printf("Result: %d > %d", num1, num2); } }
else {
printf("Result: %d < %d",num1, num2); }
Result: 4 < 9
Result: 4 = 9
Result: 9 > 4
This code will not compile
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: This statement is valid in C
result + 10 = 2 * 30 - 3;
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: This statement is valid in C
result += 5 * 8;
True
False
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: This is a valid variable in C
int 999powerLevel;
True
False
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: This is a valid variable in C
char operator;
True
False
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
T/F: This is a valid variable in C
float _myFloat;
True
False
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?