
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
10 questions
CHAPTER 2: SYSTEM ANALYSIS AND DESIGN
Quiz
•
University
15 questions
Exam Entornos Virtuales de Aprendizaje
Quiz
•
University
10 questions
แบบทดสอบซัพพลายเชนเบื้องต้น
Quiz
•
6th Grade - University
12 questions
Borders and Shades in Word 2010 Quiz
Quiz
•
10th Grade - University
10 questions
Latsol
Quiz
•
10th Grade - University
15 questions
Data Literacy Quizizz
Quiz
•
6th Grade - University
15 questions
3.1(a)(b) - Lecture
Quiz
•
University
15 questions
PPL 223 - (QUIZ 3) Data Types and Structures
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University