
C Programming - Syntax and Variables Quiz
Authored by Sushma Sushma
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to declare an integer variable in C?
int x;
integer x;
num x;
var x;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to end a statement in C?
.
,
;
:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to print output in C?
scanf()
cout
print()
printf()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take input from the user in C?
input()
scanf()
gets()
cin
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C?
1var
var_name
var-name
@var
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword to define a float variable in C?
floating
real
float
decimal
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following line do? int a = 10;
Declares a float variable
Declares and initializes an integer
Assigns 10 to a float
None of the above
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
10 questions
C3 : SET 2 - DETERMINATION OF NATIONAL INCOME EQUILIBRIUM
Quiz
•
University
10 questions
Proses Produksi 2023
Quiz
•
University
10 questions
fluid therapy
Quiz
•
University
10 questions
Research 8 - Q3 - Quiz No. 1
Quiz
•
8th Grade - University
15 questions
UTS Ekonomi Kesehatan
Quiz
•
University
10 questions
Conversatorio Ing de Soft - Ing Ind - 2023
Quiz
•
University
10 questions
Arduino ELESA
Quiz
•
University
10 questions
Introduction to CSS
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Other
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University