
C Language Proficiency
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Pratham Pratham
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a variable and a constant in C?
A variable can change its value, while a constant cannot be used in C.
A variable is declared using 'const' keyword, while a constant is declared using 'var' keyword.
A variable can change its value, while a constant has a fixed value.
A variable is used for storing fixed values, while a constant is used for storing changing values.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the different data types available in C.
boolean
string
int, float, double, char, void
array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare and initialize an array in C?
int arr = {1, 2, 3, 4, 5};
int arr[5] = {1, 2, 3, 4, 5};
int arr[5] = {1, 2, 3, 4, 6};
int arr[5] = {1, 2, 3, 4};
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of control structures in C?
Control structures in C have no specific purpose
Control structures in C are designed to confuse programmers
The purpose of control structures in C is to manage the flow of execution in a program.
Control structures in C are used for data storage
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for defining a function in C?
function_name(parameters) { // function body }
return_type function_name(parameters) { // function body }
return_type function_name(parameters) // function body
return_type function_name(parameters) { // function body
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does recursion work in C? Provide an example.
Recursion in C is not possible
Recursion in C requires a special library
Example: void recursiveFunction(int n) { if(n > 0) { printf('%d\n', n); recursiveFunction(n-1); } }
Recursion in C can only be used with arrays
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are pointers in C? How are they different from normal variables?
Pointers in C store memory addresses, while normal variables store actual values.
Pointers in C are used for arithmetic operations, while normal variables are not.
Pointers in C can only point to variables of the same data type, unlike normal variables.
Pointers in C are always initialized to NULL, unlike normal variables.
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
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
20 questions
Quiz ASJ
Quiz
•
12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
15 questions
ONLINE Quiz - Computer Hardware Basics (COMSYS 1)
Quiz
•
12th Grade
20 questions
Quiz
•
7th - 12th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
15 questions
Excel
Quiz
•
12th Grade
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
