
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
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
Already have an account?
Similar Resources on Wayground
15 questions
Class XI Basics
Quiz
•
11th - 12th Grade
10 questions
FUNDAMENTOS DE ESTADÍSTICA
Quiz
•
9th - 12th Grade
10 questions
Introduction AppSheet
Quiz
•
12th Grade
13 questions
INTERNET CONNECTION
Quiz
•
12th Grade
11 questions
Unit 2, 1.3 Types of information access and storage devices
Quiz
•
12th Grade
15 questions
Problem Solving : Design Solution
Quiz
•
12th Grade
15 questions
Virtual Private Server
Quiz
•
12th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
