Quiz 1 Review - CS125

Quiz 1 Review - CS125

University

25 Qs

quiz-placeholder

Similar activities

CSE C Section

CSE C Section

University

20 Qs

OCS752_CP_WEEKLY_TEST3 (20.08.2020)

OCS752_CP_WEEKLY_TEST3 (20.08.2020)

University

20 Qs

Technical Quiz

Technical Quiz

University

20 Qs

Pointers in C

Pointers in C

University

24 Qs

BS TEST2

BS TEST2

University

20 Qs

Code-A-Vita

Code-A-Vita

University

20 Qs

CSI Coding Quiz

CSI Coding Quiz

University

20 Qs

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

Quiz 1 Review - CS125

Quiz 1 Review - CS125

Assessment

Quiz

Computers

University

Medium

Created by

Autumn Peterson

Used 23+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?