
C Programming Fundamentals Assessment

Quiz
•
Other
•
University
•
Medium
Sunny Saxena
Used 2+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int a = 5.5;
int b = 4.3;
int c = (double)a + (double)b;
printf("%d", c);
9.8
9
error
blank screen
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to print output in C?
puts
printf
write
display
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax to declare an integer variable in C?
int myVariable;
int -myVariable;
float myVariable;
integer myVariable;
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the size of an int variable in C on a 32-bit system?
2 bytes
16 bytes
8 bytes
4 bytes
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is type conversion in C?
Type conversion in C is the process of converting a variable from one data type to another
Type conversion in C is only done implicitly.
Type conversion in C refers to changing the variable's name.
Type conversion in C is the process of changing a variable's scope.
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
int a='a';
int b=2;
char sum=a+b;
printf("%c",sum);
a
A
c
99
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the 'if' statement in C?
To create loops in C.
To declare variables in C.
To define a function in C.
To execute code conditionally based on a boolean expression.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Algoritmos

Quiz
•
University
15 questions
5CSE1_T&P questions

Quiz
•
University
20 questions
QUIZ WEEK 6

Quiz
•
University
12 questions
Brainy Bites: Python

Quiz
•
University
15 questions
R programming

Quiz
•
University
20 questions
IEEE CTS Quiz

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
19 questions
Quiz-day1-C

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University