C programming Quiz
Quiz
•
Computers
•
University
•
Medium
Shital Ugale
Used 5+ times
FREE Resource
Enhance your content
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.
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
17 questions
Đề ôn tập cuối HKI lớp 5
Quiz
•
6th Grade - University
20 questions
Software Processes
Quiz
•
University
18 questions
Fiber Optic
Quiz
•
University
20 questions
Kuis Ms Excel
Quiz
•
12th Grade - University
15 questions
Networks
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
ĐC CNTT_Chương 1
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
