
C Programming Quiz
Authored by Zemmary Batucan
Information Technology (IT)
University
Used 6+ 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 way to declare an integer variable in C?
int var;
integer var;
var int;
int_var;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the #include
It includes the standard I/O library
It defines standard input-output functions
It starts the main function
It declares variables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid comment in C?
// This is a comment
/* This is a comment */
Both a and c
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, the main() function:
Must always return an integer
It is optional
Can return any data type
Is executed at the end of the program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares a constant in C?
#define PI 3.14
const PI = 3.14
constant PI = 3.14
Both a) and b)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax to print "Hello, World!" in C is:
printf("Hello, World!");
print("Hello, World!");
cout << "Hello, World!";
echo "Hello, World!";
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file must be included to use the printf() and scanf() functions?
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
13 questions
Nano quiz: Bottleneck of Motivation 2 and Receptivity Threshold
Quiz
•
University
15 questions
Массив
Quiz
•
University
15 questions
InfoSec Quiz 1
Quiz
•
University
10 questions
Quiz - Foundation of Testing (Testing and System Implementation)
Quiz
•
University
12 questions
Recap W02 - W04 Information and Communication Technology
Quiz
•
University
10 questions
Quizzi bài 29 Tin học 10
Quiz
•
10th Grade - University
10 questions
Quiz Meet 3 Mini SC Programing
Quiz
•
University
10 questions
Quiz on Basics of C
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University