
C Programming Basics Quiz
Quiz
•
Other
•
6th - 8th Grade
•
Medium
Academic Technotran
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to print a message in C?
printf('Hello');
print('Hello');
echo('Hello');
cout << 'Hello';
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct data type to store decimal numbers in C?
int
float
char
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to end a statement in C?
.
;
:
,
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is required to use printf() in C?
math.h
stdio.h
conio.h
stdlib.h
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C?
2variable
_variable
variable-2
var iable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int in C?
2 bytes
4 bytes
Depends on the system
8 bytes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a constant in C?
constant int x = 10;
int x = 10;
const int x = 10;
define const x = 10;
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
le Quiz de Noel de la meilleure équipe
Quiz
•
1st Grade - University
25 questions
ULANGAN HARIAN BAB 3 TIK
Quiz
•
7th Grade
30 questions
SEJARAH T4/B2
Quiz
•
5th - 10th Grade
25 questions
soal kelas 3 tema 7
Quiz
•
8th Grade
25 questions
Ujian Prakarya Kelas 7 Semester Genap
Quiz
•
7th Grade
25 questions
Latihan Ulangan Bahasa Indonesia Tema 1
Quiz
•
6th Grade
25 questions
Sumatif LM 1
Quiz
•
7th Grade
25 questions
PENILAIAN AKHIR TAHUN_MATEMATIKA
Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
20 questions
Figurative Language Review
Quiz
•
8th Grade
10 questions
Red Ribbon Week - where did it start?
Passage
•
6th Grade
10 questions
Adding and Subtracting Integers
Quiz
•
6th Grade
