
C Programming Basics Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Vihari Busa
FREE Resource
Enhance your content in a minute
105 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the format specifier for a floating-point number in printf()?
%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
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
100 questions
SOAL 1101 - 1200 IFRC 2024
Quiz
•
12th Grade
100 questions
PreTest Informatika 1
Quiz
•
9th - 12th Grade
101 questions
Units 10, 11, 12 Revision Quizzizz
Quiz
•
12th Grade
100 questions
RA3.1 Aplicar procesos y técnicas de prueba de la aplicación o s
Quiz
•
12th Grade
107 questions
Quiz về Trí Tuệ Nhân Tạo
Quiz
•
12th Grade - University
105 questions
O Level M1 R5 Mix 100 MCQ Set 1
Quiz
•
12th Grade
101 questions
M1 R5 Test 12
Quiz
•
12th Grade
100 questions
Đề ôn tập 12 Tin
Quiz
•
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
