
C programming Quiz
Authored by Shital Ugale
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
There are ___ storage classes in C
2
4
6
8
Answer explanation
In C, there are 4 storage classes: auto, register, static, and extern. Each class defines the scope, visibility, and lifetime of variables, making '4' the correct answer.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The data type int uses ___ bytes of memory.
2
4
6
8
Answer explanation
The data type 'int' typically uses 2 bytes of memory in many programming environments, especially in older systems. Therefore, the correct answer is 2 bytes.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To show end of program ___ symbol used?
<
(
{
}
Answer explanation
The end of a program is typically denoted by the closing brace '}'. This symbol indicates the conclusion of code blocks in many programming languages, making it the correct choice for showing the end of a program.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is the incorrect form of variable?
sale20
Name
12Rno
Net_Salary
Answer explanation
The variable '12Rno' is incorrect because variable names cannot start with a digit. The other options 'sale20', 'Name', and 'Net_Salary' are valid variable names.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the default C Storage Class for a variable?
static
auto
register
extern
Answer explanation
In C, the default storage class for a variable declared inside a function is 'auto'. This means the variable has automatic storage duration and is created and destroyed with the function's execution.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To find remainder _____ operator is use in C program
%
@
/
|
Answer explanation
In C programming, the '%' operator is used to find the remainder of a division operation. It returns the remainder after dividing one number by another, making it the correct choice for this question.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
C program is save with _____ extension.
.a
.b
.c
.d
Answer explanation
C programs are saved with the .c extension, which is the standard file format for C source code. Therefore, the correct answer is .c.
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
16 questions
Digital Icons
Quiz
•
12th Grade - University
20 questions
PARC Linux Basic Part 2
Quiz
•
University
20 questions
Google SketchUp Tool
Quiz
•
KG - University
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
20 questions
basisdata1
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
18 questions
Memory-Mobo-Hard/Software
Quiz
•
University
15 questions
tik kelas 7
Quiz
•
1st Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University