What does the 'printf' function do in C?

Basic C language

Quiz
•
Other
•
Professional Development
•
Easy
Dhairyashil Sutar
Used 11+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A) Reads input from the user.
B) Performs mathematical calculations.
C) Prints output to the console
D) Declares a variable.
Answer explanation
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which keyword is used to define a constant in C?
A) const
B) Float
C) int
D) var
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which data type is used to store whole numbers in C?
A) float
B) char
C) int
D) double
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the symbol used for a single-line comment in C?
A)#
B) ==
C) &&
D) //
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the header file for input and output functions in C?
A) stdio.h
B) iostream.h
C) inputoutput.h
D) conio.h
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the purpose of the 'if' statement in C?
A) Loop through a set of values.
B) Make decisions based on conditions
C) Perform bitwise operations.
D) Declare a new variable
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which symbol is used for the "not equal to" comparison operator in C?
a) ==
b ) <>
c ) !=
d ) /=
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Mine craft

Quiz
•
KG - Professional Dev...
10 questions
Basics of Financial Accounting

Quiz
•
Professional Development
15 questions
Python & SQL

Quiz
•
Professional Development
15 questions
Mini game "khi tôi 18"

Quiz
•
Professional Development
10 questions
Tes Psikologi

Quiz
•
Professional Development
6 questions
first Quizz

Quiz
•
Professional Development
14 questions
Buổi 16 mảng 2 chiều

Quiz
•
Professional Development
10 questions
Fullstack Assignment

Quiz
•
Professional Development
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