What is the syntax for declaring a variable in C?
Basics of C Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Aaditya Dahal
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
data_type variable_name;
variable_name data_type;
int variable_name;
variable_name = data_type;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between 'while' and 'do-while' loop in C.
The 'while' loop checks the condition before executing the code inside the loop, while the 'do-while' loop executes the code inside the loop at least once before checking the condition.
The 'while' loop and 'do-while' loop both check the condition before executing the code inside the loop
The 'while' loop executes the code inside the loop at least once before checking the condition, while the 'do-while' loop checks the condition before executing the code inside the loop
The 'while' loop and 'do-while' loop both execute the code inside the loop at least once before checking the condition
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of 'typedef' keyword in C?
To include a library
To declare a new variable
To define a function
To create an alias for data types
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of 'array' in C.
An array in C is a data structure used to store a collection of elements of the same data type.
An array in C is a function that points to a specific memory location.
An array in C is a variable that stores the memory address of another variable.
An array in C is a variable that stores the value of another variable.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between 'local' and 'global' variables in C.
Local variables are declared inside a function and can only be accessed within that function, while global variables are declared outside of any function and can be accessed by any function in the program.
Local variables are declared outside of any function and can be accessed by any function in the program, while global variables are declared inside a function and can only be accessed within that function.
Local variables are declared inside a function and can only be accessed within that function, while global variables are declared inside a function and can be accessed by any function in the program.
Local variables are declared outside of any function and can be accessed by any function in the program, while global variables are declared outside of any function and can only be accessed within that function.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
10 40
40 20
30 40
40 40
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0 2 5
0 2 4 5
0 2 4
0 4
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
3
Infinite recrusion
5
-2
Similar Resources on Quizizz
10 questions
Global and local variables

Quiz
•
10th - 12th Grade
10 questions
NHTW Programming

Quiz
•
9th Grade
10 questions
Python Fundamentals for Grade 9 Students

Quiz
•
9th Grade
13 questions
NOCTI Computer Programming

Quiz
•
12th Grade
10 questions
Python Concepts

Quiz
•
9th Grade
10 questions
QUARTER 3 MOD 1-5

Quiz
•
10th Grade
13 questions
KS4 Python While Loops and For Loops

Quiz
•
9th - 11th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University