C Programming Basics

Quiz
•
Other
•
•
Medium
Deepshikha Saxena
Used 128+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in C?
A variable in C is a function that returns a value
A variable in C is a reserved keyword used for loops
A variable in C is a named storage location that can hold a value of a specific data type.
A variable in C is a constant value that cannot be changed
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many data types are there in C?
10
5
7
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different control structures in C?
Iteration
Condition
Branching
Sequence, Selection, Loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C?
A function in C is a variable declaration
A function in C is a data type
A function in C is a block of code that performs a specific task.
A function in C is a loop structure
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are arrays declared in C?
By using parentheses instead of square brackets
By using curly braces to enclose the elements
By specifying the size of the array first followed by the data type of elements
By specifying the data type of elements followed by square brackets containing the size of the array.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a variable in C?
float value;
int num;
bool flag;
string name;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of int data type in C?
2 bytes on 32-bit systems and 4 bytes on 64-bit systems
8 bytes on 32-bit systems and 16 bytes on 64-bit systems
1 byte on 32-bit systems and 2 bytes on 64-bit systems
4 bytes on 32-bit systems and 8 bytes on 64-bit systems
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Orientation Quiz

Quiz
•
University
20 questions
control system

Quiz
•
University
23 questions
Earthing Arrangements Quiz

Quiz
•
12th Grade - University
15 questions
Web Development Quiz

Quiz
•
University
20 questions
Electric Shock and Earthing Quiz

Quiz
•
9th Grade - University
15 questions
C Quiz

Quiz
•
University
20 questions
Python Quiz_Module2

Quiz
•
University
15 questions
Getting Started with Makecode Arcade

Quiz
•
6th - 8th 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 Other
20 questions
Disney Characters

Quiz
•
KG
20 questions
Place Value

Quiz
•
KG - 3rd Grade
20 questions
Logos

Quiz
•
KG
8 questions
Place Value & Value

Quiz
•
KG - 2nd Grade
20 questions
Capitalization in sentences

Quiz
•
KG - 4th Grade
12 questions
Continents and Oceans

Quiz
•
KG - 8th Grade
5 questions
911 Presentation

Lesson
•
KG
13 questions
Capitalization and Punctuation

Quiz
•
KG - 2nd Grade