
C Programming Fundamentals
Authored by Ms.S. PERIYANAYAKI
Engineering
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the basic structure of a C program?
The basic structure of a C program includes preprocessor directives, the main function, variable declarations, statements, and a return statement.
Only includes the main function and return statement.
Consists solely of variable declarations and comments.
Requires a graphical user interface to run.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the primary data types in C.
int, float, double, char, void
array
boolean
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of storage classes in C?
The purpose of storage classes in C is to control the visibility, lifetime, and storage duration of variables.
To define the data types of variables.
To optimize the performance of the program.
To manage memory allocation for functions.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List three keywords in C programming.
while
['int', 'return', 'if']
for
switch
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a binary number to decimal in C?
Use bitwise operations or a loop to calculate the decimal value from the binary representation.
Use a string manipulation function to parse the binary digits.
Use printf to display the binary number directly.
Convert the binary number to hexadecimal first.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the arithmetic operator '+' in C?
The '+' operator multiplies two numbers in C.
The '+' operator divides two numbers in C.
The '+' operator adds two numbers or concatenates strings in C.
The '+' operator subtracts two numbers in C.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the use of the 'if' statement in decision making.
The 'if' statement is only applicable in mathematical calculations.
The 'if' statement is used to execute code based on whether a condition is true, enabling decision making in programs.
The 'if' statement is used to declare variables in a program.
The 'if' statement is used to define functions in programming.
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?