
C Programming Quiz
Quiz
•
Information Technology (IT)
•
University
•
Hard
Zemmary Batucan
Used 6+ times
FREE Resource
Enhance your content in a minute
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?
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Huawei Security
Quiz
•
University
10 questions
Diagnóstico de Algoritmos y Fundamentos de Programacion
Quiz
•
University
9 questions
Binary, Decimal, Hexadecimal Knowledge
Quiz
•
7th Grade - University
13 questions
Session 15 + 16 : Function
Quiz
•
University
10 questions
CHFI Module 1
Quiz
•
University
15 questions
Web Application - PHP Repetition
Quiz
•
University
10 questions
ADBM_Quiz_2_C
Quiz
•
University
15 questions
BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2
Quiz
•
2nd Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
7 questions
Review for You: Using Commas
Interactive video
•
4th Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
Safari Scholar: Searching for Subject-Verb Agreement
Interactive video
•
4th Grade - University
