
C Language MCQs
Authored by SImranjeet Kaur
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What does the following code output?
#include
5
10
15
Compilation error
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which header file is required to use the printf() function in C?
stdio.h
stdlib.h
math.h
string.h
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the correct way to declare a pointer in C?
int *ptr;
int ptr*;
int& ptr;
ptr int*;
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the output of the following code?
#include
1
2
3
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which of the following statements about for loops is true?
The loop executes at least once even if the condition is false.
The loop continues until the condition becomes false.
The loop must have a break statement.
The loop cannot be nested.
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the size of an int in C (on most platforms)?
1 byte
2 bytes
4 bytes
Depends on the compiler and platform
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which of the following is a valid variable name in C?
123abc
_value
float
@data
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
25 questions
STIN (EM24) - Sistemas de Información (T1)
Quiz
ā¢
University - Professi...
25 questions
Cys quiz 1
Quiz
ā¢
University
25 questions
GDSC FET Jain University Study Jam 106
Quiz
ā¢
University
25 questions
Unity. CharacterController
Quiz
ā¢
7th Grade - University
25 questions
Script_programming_test
Quiz
ā¢
University
25 questions
IoT Quiz - 1
Quiz
ā¢
University - Professi...
25 questions
The SemiColons Quiz
Quiz
ā¢
University
25 questions
Information assurance and security
Quiz
ā¢
University
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
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
20 questions
Figurative Language Review
Quiz
ā¢
6th Grade