
C Language Fundamentals

Quiz
•
Engineering
•
University
•
Hard
Dr. N
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Understanding Source Code Management

Quiz
•
University
7 questions
Quiz 2 MPU MCU Linker and Loader

Quiz
•
University
10 questions
Infix to Postfix Conversion Quiz

Quiz
•
University
11 questions
Ring Leader: Lesson 2

Quiz
•
9th Grade - University
10 questions
Final Exam in Programming CPE/EE

Quiz
•
University
15 questions
1970 Indian Patent Act- Quiz 1 by Gururaj Surampalli

Quiz
•
University
10 questions
DCN_Unit2

Quiz
•
University
5 questions
34368_week_11

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 Engineering
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