
C Programming Concepts Assessment

Quiz
•
Engineering
•
University
•
Medium
vinjamuri Kamesh
Used 1+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types available in C?
boolean
string
int, float, double, char, void
array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between 'if' and 'switch' control structures in C.
'if' is used for loops, while 'switch' is for single conditions.
The 'if' structure is for conditional checks, while 'switch' is for selecting among multiple cases based on a single expression.
'if' can only evaluate boolean expressions, while 'switch' can evaluate any data type.
'if' is faster than 'switch' in all cases.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C and how is it defined?
A function in C is simply a block of code that does not require any parameters.
In C, a function is declared with the syntax: function_name(parameter_type) return_type { // body }
A function in C is defined as function_name(parameter_type parameter_name) { // function body }
A function in C is defined using the syntax: return_type function_name(parameter_type parameter_name) { // function body }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe recursion and provide an example of a recursive function in C.
int factorial(int n) { if (n <= 1) return 1; return n * factorial(n - 1); }
int power(int base, int exp) { return base * power(base, exp - 1); }
int sum(int n) { return n + sum(n - 1); }
int fibonacci(int n) { return fibonacci(n - 1) + fibonacci(n - 2); }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C and how is it used?
A pointer in C is a variable that holds the address of another variable, enabling direct memory access and manipulation.
A pointer in C is a variable that stores a string value.
A pointer in C is a type of function that executes code.
A pointer in C is a special data type that can only hold integer values.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of dynamic memory allocation in C.
Dynamic memory allocation in C is the process of allocating memory during program execution using functions like malloc and free.
Memory allocation in C is only possible using global variables.
Dynamic memory allocation in C is done at compile time using static arrays.
Dynamic memory allocation in C is managed automatically by the compiler.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different file modes available in C for file I/O operations?
a+
The different file modes available in C for file I/O operations are: 'r', 'w', 'a', 'rb', 'wb', 'ab', 'r+', 'w+', 'a+'.
r+
w+
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Symposium Round 1

Quiz
•
University
30 questions
Day 1 Wipro Training

Quiz
•
University
30 questions
Coding Club Activity 1

Quiz
•
University
40 questions
Python Programming Quiz

Quiz
•
University
40 questions
Linux Commands Quiz - Basic 01 to Basic 02

Quiz
•
University
30 questions
Data Structures Quiz

Quiz
•
University
35 questions
ввп,

Quiz
•
University
30 questions
ECE415L - LONG QUIZ

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Engineering
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University