
Data Types and Variables Quiz
Authored by sasith Devin
Information Technology (IT)
University
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following data types is used to store a single character in C?
float
void
int
char
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the typical size of an int data type in memory on a 32-bit system?
8 bytes
4 bytes
1 byte
2 bytes
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which keyword is used to declare a variable that can hold decimal values with single precision?
int
double
char
float
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The void data type is primarily used for which of the following purposes?
To store a memory address.
To represent a value of zero.
To declare a variable that can hold any data type.
To specify that a function does not return a value.
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the primary difference in use between the float and double data types?
A double provides more precision than a float.
A float is a signed type, while a double is an unsigned type.
A double requires less memory than a float.
A float can store larger numbers than a double.
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
If a char variable is declared as unsigned char, what is the approximate range of values it can hold?
0 to 255
-128 to 127
-32768 to 32767
0 to 65535
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will happen if you try to assign the value 3.14 to an int variable in C?
A compiler error will occur because of the data type mismatch.
The variable will store the value 3.14 without any changes.
The variable will store the value 3 and the value will be rounded up to 4.
The variable will store the value 3 and the fractional part will be truncated.
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
25 questions
Week 3-4
Quiz
•
University
25 questions
Media Literacy Quiz
Quiz
•
11th Grade - University
25 questions
LIT Sebelum UAS
Quiz
•
University
25 questions
Revision
Quiz
•
University
25 questions
KELAS 6 Analisis Data A. ANALISIS DATA
Quiz
•
6th Grade - University
25 questions
MPMP - Quiz
Quiz
•
University
25 questions
RM_4. nedelja
Quiz
•
University
25 questions
Networks & the Internet Quiz
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University