
C Programming Basics Quiz
Quiz
•
Other
•
6th - 8th Grade
•
Practice Problem
•
Medium
Academic Technotran
Used 3+ times
FREE Resource
Enhance your content in a minute
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;
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
28 questions
Racconti dalla Bibbia
Quiz
•
6th Grade
33 questions
SEJARAH T4/B4
Quiz
•
5th - 12th Grade
25 questions
Pendidikan Agama Islam kelas 7
Quiz
•
7th Grade
25 questions
INFORMATIKA Kelas 8
Quiz
•
8th Grade
25 questions
QUI EST BTS ?
Quiz
•
KG - Professional Dev...
25 questions
PH Kelas 6 Tema 7
Quiz
•
6th Grade
25 questions
PH 1 Kelas 8 PRAKARYA
Quiz
•
8th Grade
25 questions
Fabel dan Legenda
Quiz
•
7th 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
Discover more resources for Other
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
20 questions
Exponents
Quiz
•
6th Grade
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
15 questions
Distributive Property & Review
Quiz
•
6th Grade
10 questions
Figurative Language
Quiz
•
6th Grade
