
C Basics
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
deepika ponnusamy
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid C keyword?
if
while
do..while
main()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a variable in C?
char name;
float number1;
int 1number;
double 2value;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: printf("%d", 5 + 3);?
Error
5
8
53
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used for logical AND in C?
!
&&
||
&
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 10;
if (x > 5) {
printf("Hello");
} else {
printf("World");
}
What will be the output?
Hello
World
HelloWorld
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: printf("%f", 3.14);?
314
3.140000
Error
3.14
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to define a function in C?
function myFunction() {}
void myFunction;
int myFunction() {}
myFunction() int {}
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
12 questions
Javascript
Quiz
•
University
10 questions
Programación II Parte 5
Quiz
•
University
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
15 questions
Data Mining - Classification Mining
Quiz
•
University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
10 questions
PYTHON_CHAPTER 6
Quiz
•
University
9 questions
CHAPTER 5 ONLINE QUIZ
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
