
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
Edublock -course assessment

Quiz
•
12th Grade
20 questions
13.1 User-defined Data Types Cambridge iA 9618

Quiz
•
12th Grade
10 questions
Introduction to C++ 2024/25

Quiz
•
12th Grade
10 questions
Sains Komputer : 1.6.1

Quiz
•
12th Grade
20 questions
ch-1 class 9th

Quiz
•
9th Grade - University
15 questions
Understanding C++ Operators and Casting

Quiz
•
12th Grade
10 questions
AppsLab_Q2

Quiz
•
10th Grade - Professi...
20 questions
Array

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade