
C Programming Quiz

Quiz
•
Computers
•
University
•
Medium
Kommu Kusumakumari
Used 3+ times
FREE Resource
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?
!==
>=
==
<
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Debugging

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
26 questions
C Language Basics

Quiz
•
University
20 questions
DSA quiz

Quiz
•
University
30 questions
Think Tank Tuesday

Quiz
•
University
25 questions
Quiz 1 Review - CS125

Quiz
•
University
20 questions
BGSCET - INFORMATION SCIENCE & ENGINEERING

Quiz
•
University
20 questions
Quiz

Quiz
•
University
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
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University