
C Programming Fundamentals
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
SABARISH K S
Used 3+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet: int a = 5; if(a > 3) { printf("Hello"); } else { printf("World"); }
Greetings
Salutations
Hello
Hi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the data type of the variable 'x' in the following code: float x = 10.5;
int
float
string
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression: 10 / 3?
4.0
2.5
3.5
3.3333
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: int a = 10; a++; printf("%d", a);
11
10
9
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the switch statement in C?
To create loops in C programming.
To define functions in C.
To handle errors in C code.
The purpose of the switch statement in C is to simplify multi-way branching based on the value of a variable.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: int a = 5; int b = 10; int c = (a > b) ? a : b; printf("%d", c);
15
10
5
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following operation: 5 + 2 * 3?
11
8
9
10
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
18 questions
Quizz Navideño
Quiz
•
Professional Development
20 questions
CB-Quiz On AWS_IAM USER
Quiz
•
Professional Development
20 questions
Chapter 10: Incident Detection and Analysis
Quiz
•
Professional Development
21 questions
Quiz for Puducherry State Connect Programme
Quiz
•
Professional Development
23 questions
Social Engineering Cydex
Quiz
•
Professional Development
25 questions
CBE Pretest
Quiz
•
Professional Development
20 questions
Mastering Web Performance Optimization
Quiz
•
Professional Development
20 questions
IT Townhall
Quiz
•
Professional Development
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