
C Language Fundamentals
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Dr. N
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types available in C?
int, float, double, char, void
string, boolean, list, map
integer, decimal, character, null
list, short, long, float
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between 'if' and 'switch' control structures.
'if' is used for loops, while 'switch' is for single conditions.
'if' is a function, while 'switch' is a variable type.
'if' can only handle two cases, whereas 'switch' can handle more than two.
The 'if' structure is for conditional checks, while 'switch' is for evaluating multiple cases based on a single expression.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function in C?
To create loops in C
To define variables in C
To manage memory allocation in C
The purpose of a function in C is to encapsulate code for specific tasks, enabling code reuse and organization.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a pointer in C?
int *ptr[];
int ptr;
pointer int ptr;
int *ptr;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the relationship between arrays and pointers in C?
Arrays can only store integers in C.
Arrays and pointers are closely related; the name of an array acts as a pointer to its first element.
Pointers cannot be used to access array elements.
The size of an array is always fixed and cannot be changed.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you open a file for reading in C?
FILE *file = fopen("filename.txt", "r");
FILE *file = fopen("filename.txt", "a");
FILE *file = fopen("filename.txt", "w");
FILE *file = open("filename.txt");
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the scope of a variable declared inside a function?
Block scope
Static scope
Local scope
Global scope
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
Lógica Booleana taller
Quiz
•
University
10 questions
Saber Pro Test - Industrial Engineering (9th Semester)
Quiz
•
University
10 questions
Lección Prueba de Máquina eléctrica
Quiz
•
University
15 questions
PENYELNGGARAAN
Quiz
•
University
10 questions
UNIDAD 1: Nociones básicas de la electricidad.
Quiz
•
University
10 questions
Diode
Quiz
•
University
10 questions
CHAPTER 4: THERMODYNAMIC CYCLES & SECOND LAW OF THERMODYNAMICS
Quiz
•
University
15 questions
Definition of Weathering
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Engineering
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
