
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
1. hafta bilimsel araştırmanın temelleri-3
Quiz
•
University
10 questions
Practical Research
Quiz
•
University
10 questions
Radio Transmitters
Quiz
•
1st Grade - University
10 questions
Verb
Quiz
•
5th Grade - University
15 questions
Técnicas de Recolección de Datos
Quiz
•
University
15 questions
Week 1 Cardio Quizz
Quiz
•
University
10 questions
Week 1: FOP
Quiz
•
University
10 questions
El nacimiento de la psicología científica
Quiz
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University