
C_ QUIZ1
Authored by Veena Gadad
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
12 questions
Javascript
Quiz
•
University
9 questions
Los periféricos del computador
Quiz
•
1st Grade - Professio...
10 questions
Networking Essentials - Test 5
Quiz
•
University
10 questions
Repaso F1007B (Bloque 3)
Quiz
•
University
10 questions
Programación II Parte 5
Quiz
•
University
10 questions
Internet seguro
Quiz
•
8th Grade - University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
Herramientas de Google
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University