ch456713

Quiz
•
Other
•
University
•
Easy
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
Similar Resources on Wayground
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 Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University