
C Programming Fundamentals Assessment
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Ajmal Ahamed
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What are the basic data types available in C?
boolean
int, float, double, char, void
string
array
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How do you declare an integer variable in C?
int myVariable;
var myVariable;
integer myVariable;
float myVariable;
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the purpose of the 'if' statement in C?
To execute code conditionally based on a boolean expression.
To create loops in C.
To declare variables in C.
To define a function in C.
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Explain the difference between 'while' and 'for' loops in C.
'While' loops can only be used with integer values.
'For' loops do not require a condition to terminate.
'While' loops are faster than 'for' loops in all cases.
The main difference is that 'while' loops check the condition before each iteration, while 'for' loops are used for a known number of iterations with initialization and increment in one line.
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is a float data type used for in C?
The float data type is used to represent decimal numbers in C.
The float data type is used for defining integer values in C.
The float data type is used to represent characters in C.
The float data type is used for storing boolean values in C.
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How do you create a switch statement in C?
for(value in variable) { // code; }
if(variable == value1) { // code; } else if(variable == value2) { // code; }
switch(variable) { case value1: // code; break; case value2: // code; break; default: // code; }
while(variable == value1) { // code; }
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code: int x = 5; printf('%d', x++);?
6
5.0
4
5
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
ETWINNING SID EVENT 24
Quiz
•
1st - 12th Grade
10 questions
Vertex AI Pipelines V1
Quiz
•
12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
10 questions
EMPTECH L4 Q2
Quiz
•
12th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
10 questions
Data Engineering y BigQuery V1
Quiz
•
12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
