
C Programming Tutorial 2 (Chapter 2)

Quiz
•
Professional Development
•
Professional Development
•
Easy
Anna Sukri
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C language, “scanf” command is used to accept the user input from the keyboard. The format of scanf is:
scanf {"The text to be displayed"};
scanf [“The text to be displayed”];
scanf <"The text to be displayed">;
scanf ("The text to be displayed");
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
____________ represent grammar errors in the use of the programming language.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a data type in C programming?
int
float
char
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to declare an integer variable named "x"?
integer x;
x = int;
int x;
x = integer;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
int x = 5;
int y = x++;
printf ("%d %d", x, y);
5 6
6 5
5 5
6 6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a loop statement in C programming?
if
else
for
switch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to read input from the user in C programming?
scanf ("%d", x);
read ("%d", x);
scanf ("%d", &x);
input ("%d", &x);
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
AWS Python Booster Day 2

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
10 questions
CPR Quiz_chapter 5_structure

Quiz
•
Professional Development
10 questions
Day 2

Quiz
•
Professional Development
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
13 questions
TOEIC A - 2

Quiz
•
University - Professi...
10 questions
pemrograman dasar

Quiz
•
Professional Development
20 questions
flutter g28

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade