ch456713

ch456713

University

99 Qs

quiz-placeholder

Similar activities

Substation Operator Quiz

Substation Operator Quiz

University

101 Qs

CC 2024 Partie B G4-G4

CC 2024 Partie B G4-G4

University

100 Qs

HESI Review: Image Production

HESI Review: Image Production

University

100 Qs

2021 EE

2021 EE

University

101 Qs

MD5 және ROI туралы сұрақтар

MD5 және ROI туралы сұрақтар

University

103 Qs

NUTRPRCQZ FINAL PART 1

NUTRPRCQZ FINAL PART 1

University

103 Qs

Câu hỏi về tư duy và giải quyết vấn đề

Câu hỏi về tư duy và giải quyết vấn đề

University

96 Qs

Cuestionario sobre Estadística

Cuestionario sobre Estadística

University

97 Qs

ch456713

ch456713

Assessment

Quiz

Other

University

Easy

Created by

Amrit Selva Ganesh

Used 3+ times

FREE Resource

99 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is an lvalue in C?

A) A label name

B) A literal constant

C) An object stored in computer memory

D) An error message

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the statement count++ do?

Sets count to 0

Increments count by 1

Multiplies count by 2

Decreases count by 1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a correct use of assignment chaining?

i + j + k = 0;

i == j == k == 0;

i = j == k = 0;

i = j = k = 0;

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of

i = 8; j = 4; i *= j++;

printf("%d %d", i, j); ?

32 4

40 5

40 4

32 5

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which form of increment returns the incremented value immediately?

x--

--x

++x

x++

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a switch statement, what data types can the controlling expression be?

int, char, enum

array

string and float

float and double

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output if grade = 3 ?

switch (grade) { case 4: printf("Excellent"); case 3: printf("Good"); case 2: printf("Average"); case 1: printf("Poor"); case 0: printf("Failing"); }

GoodAveragePoorFailing

Good

GoodAverage

GoodAveragePoor

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?