
C_ QUIZ1

Quiz
•
Computers
•
University
•
Medium
Veena Gadad
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in C is used to store single-precision floating-point numbers?
float
double
long double
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When should the 'unsigned' modifier be used with integer data types in C?
When negative values are not allowed.
When negative values are allowed.
It is optional and does not affect the behavior of the data type.
When the range of positive values needs to be extended.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of values for the 'char' data type in C when it is declared as 'unsigned'?
0-255
-128 to 127
0 to 127
-32768 to 32767
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
#include <stdio.h> int main() { int x = 10, y = 20; printf("%d", x < y ? x++ : y--); return 0; }
10
11
19
20
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following bitwise operation in C?
unsigned int x = 10, y = 6; unsigned int result = x ^ y;
0
4
14
16
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of z after the following code snippet executes?
float x = 10.5;
int y = 5;
float z = (int)x + (float)y;
10.5
15.5
10.0
15.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
int x = 10;
char y = 'A';
printf("%d", (int)(x + y));
What will be printed as a result of this code?
75
66
76
Compilation Error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java

Quiz
•
University
12 questions
UNIT 3

Quiz
•
University
13 questions
ÔN TẬP C - mảng 1 chiều

Quiz
•
University
10 questions
Pengantar Coding

Quiz
•
University
12 questions
Operators in C

Quiz
•
University
10 questions
Expression in C Programming

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
10 questions
PROGRAMACION

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University