
C Language Proficiency

Quiz
•
Computers
•
12th Grade
•
Hard
Pratham Pratham
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
G8 Practice PC

Quiz
•
12th Grade
12 questions
Linguagem C parte II

Quiz
•
12th Grade
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
20 questions
Pointers

Quiz
•
12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th Grade
17 questions
Variables

Quiz
•
9th - 12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade