
C Programming Quiz
Authored by Kommu Kusumakumari
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the #include
To include the standard input/output library
To define a constant
To declare variables
To initialize the main function
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to declare a variable in C?
int x;
int x = 10;
int x + 10;
declare int x = 10;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the break statement in a loop?
To terminate the loop immediately
To skip the current iteration
To restart the loop
To execute the next statement after the loop
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which loop construct in C is best suited for a situation where the number of iterations is known beforehand?
while loop
do-while loop
for loop
infinite loop
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a valid way to declare a 2D array in C?
int arr[3][4];
int arr[3,4];
int[3][4] arr;
int arr(3)(4);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a logical operator in C?
AND
OR
NOT
IF
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which comparison operator can be used to check if one value is less than another?
!==
>=
==
<
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
20 questions
BFS - (Virtual) Quiz 2
Quiz
•
University
20 questions
SAD-Q1
Quiz
•
University
20 questions
Examen 2da. parcial Informatica VII
Quiz
•
University
20 questions
Bai kiem tra
Quiz
•
University
20 questions
Programming Concepts in C - Quiz-II
Quiz
•
University
20 questions
Information Management - QUIZ
Quiz
•
University
21 questions
Pemodelan & Simulasi Sistem PRAK
Quiz
•
University
20 questions
Database Relationships Quiz
Quiz
•
12th Grade - 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