
Mastering C Programming Concepts
Quiz
•
Engineering
•
Professional Development
•
Practice Problem
•
Medium
Mrs. Sharma
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types available in C?
string
int, float, double, char, void
boolean
array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between 'if' and 'switch' control structures.
The 'if' structure is for conditional checks, while 'switch' is for evaluating multiple cases based on a single expression.
'if' is used for loops, while 'switch' is for single conditions.
'if' is a function, while 'switch' is a variable.
'if' can only evaluate two cases, whereas 'switch' can evaluate one case.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C and how is it defined?
A function in C is defined using the syntax: return_type function_name(parameter_list) { // function body }
A function in C is created with the syntax: function_name { return_type(parameter_list) }
A function in C is declared using the syntax: function_name return_type(parameter_list);
A function in C is defined as function_name(parameter_list) { // function body }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe recursion and provide an example of a recursive function.
An example of recursion is a function that calculates the sum of an array without calling itself.
A recursive function is one that uses loops to repeat actions.
Recursion is a method of sorting data in a list without any function calls.
An example of a recursive function is the calculation of the factorial of a number: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); }
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, used for direct memory access and manipulation.
A pointer in C is a variable that stores a string value.
A pointer in C is a special data type that can only hold integer values.
A pointer in C is a type of function that executes code.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you dynamically allocate memory in C?
Use 'print(size)' to allocate memory
Use 'new(size)' to allocate memory in C
Use 'malloc(size)', 'calloc(num, size)', or 'realloc(ptr, new_size)' to dynamically allocate memory in C.
Use 'allocate(size)' for dynamic memory
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the standard file I/O functions in C?
read, write, open, close
input, output, save, load
fopen, fclose, fread, fwrite, fprintf, fscanf
create, delete, append, modify
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
10 questions
Indicador Implementación del Modelo de Gestión Proyectos
Quiz
•
Professional Development
17 questions
Safework quizizz
Quiz
•
Professional Development
10 questions
Tema 1.3 Dibujo Computarizado
Quiz
•
Professional Development
15 questions
MCQ on Innovation & Creativity
Quiz
•
Professional Development
17 questions
3003 LO4 13 RCDs Resistor Values and Test Currents
Quiz
•
Professional Development
12 questions
EVALUACIÓN DE CAPACITACIÓN
Quiz
•
Professional Development
10 questions
Evaluación capacitación simulacro vial
Quiz
•
Professional Development
10 questions
Numpy
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
