
Variables and Data Types in C
Authored by Tamicia undefined
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are correct?
Variables are empty spaces in memory used to store data
Examples of variables are 3num, $%date&time, 2age
Variable names should be concise and relate to the data that they are storing
When declaring variables, the data type is placed AFTER the variable name and not before
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are data types in C?
Float, data/time, int
Char, int, float, double
string, double, floater
Char, array, integer
Answer explanation
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following data can a variable declared as 'int' store?
2.55
0
30.0
30
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
TRUE OR FALSE?
The printf function is used to INPUT data while the scanf function is used to OUTPUT data
TRUE
FALSE
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the format identifiers for the data types int, char and string respectively?
%d, %c, %lf
%s, %f, %d
%d, %c, %s
%f, %lf, %s
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct format for declaring a variable that stores integers?
variable_name, data_type, = 0;
data_type, variable_name, = 0;
=0;, variable_name, data_type
data_type, =0;, variable_name
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False? The float data type in C can store the numbers 31.0 and 31.678
FALSE
TRUE
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
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
8 questions
Basic computer
Quiz
•
9th - 12th Grade
10 questions
หน่วยที่ 4 Python
Quiz
•
12th Grade
10 questions
Fundamentos de programación
Quiz
•
9th - 12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade