What is the format specifier for a floating-point number in printf()?

C Programming Basics Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Vihari Busa
FREE Resource
105 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
%d
%c
%f
%s
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen if you input a floating-point number using %d in scanf()?
It will store the integer part.
It will cause a runtime error.
It will store the floating-point value.
It will print a warning.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is correct?
printf() is used to read input from the user.
scanf() is used to display output.
Both printf() and scanf() work with format specifiers.
None of the above.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the typical size of an int on a 32-bit system?
2 bytes
4 bytes
8 bytes
1 byte
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a valid use of the void data type?
Declaring a variable of type void.
Declaring a function that does not return a value.
Declaring a pointer to hold integer data.
Returning multiple values from a function.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a primitive data type in C?
int
float
array
char
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which control statement is best suited for multiple choices?
if-else
switch-case
for
goto
Create a free account and access millions of resources
Similar Resources on Quizizz
101 questions
BTEC Computing Unit 2

Quiz
•
11th - 12th Grade
105 questions
M3 R5 Chapter 6

Quiz
•
12th Grade
100 questions
Compilation Stages Quiz

Quiz
•
12th Grade
102 questions
CSA Final (csa_13-27)

Quiz
•
12th Grade
100 questions
M3 R5 Chapter 8

Quiz
•
12th Grade - University
110 questions
PLTW CSE Unit 3.1/3.2 Review (Python)

Quiz
•
9th - 12th Grade
100 questions
AP CSP Course Vocabulary A1

Quiz
•
12th Grade
102 questions
Computer Science I 2022-2023

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University