Which of the following are correct?
Variables and Data Types in C

Quiz
•
Computers
•
12th Grade
•
Easy
Tamicia undefined
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
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
8.
OPEN ENDED QUESTION
3 mins • 1 pt
You are provided with the following:
Data type is int
Variable name is sum
Starting value/initializer is set at 1
Use what was provided to perform a declaration
Hint: Remember to put the semi-colon at the end (;)
Evaluate responses using AI:
OFF
Similar Resources on Quizizz
10 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
12 questions
Topic 1 C++ Programming

Quiz
•
12th Grade
11 questions
algoritma

Quiz
•
12th Grade
10 questions
Python Data Types

Quiz
•
9th - 12th Grade
10 questions
Functions in C++

Quiz
•
9th - 12th Grade
10 questions
Programming Basics

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade