
Bim1

Quiz
•
Architecture
•
1st Grade
•
Medium
Prakash Magar
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a valid data type in C?
int
string
char
float
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the syntax to declare a variable in C?
var_name data_type;
type var_name;
variable data_type;
data_type var_name;
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the 'scanf' function do in C?
Clears the console screen
Reads input from the user
Prints output to the console
None of the above
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is the correct way to comment a single line in C?
-- Comment
# Comment
/* Comment */
// Comment
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the "sizeof" operator in C?
It returns the size of a pointer in bytes
It returns the size of a data type in bytes
It returns the size of a function in bytes
It returns the size of a variable in bytes
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct way to initialize an array of integers in C?
int arr{}(1, 2, 3, 4, 5);
int arr{} = {1, 2, 3, 4, 5};
int arr() = {1, 2, 3, 4, 5};
int arr[] = {1, 2, 3, 4, 5};
7.
FILL IN THE BLANK QUESTION
20 sec • 2 pts
Which keyword is used to define a constant in C?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ASPIRANTAZGO ADRIEL

Quiz
•
1st Grade - University
15 questions
untitled

Quiz
•
1st Grade - University
10 questions
EL SUJETO

Quiz
•
1st - 5th Grade
10 questions
HABILIDAD MATEMÁTICA - #2 - I

Quiz
•
1st Grade
10 questions
Tổng quan bảo tàng Louvre

Quiz
•
1st Grade
20 questions
SOAL SEMESTER GENAP

Quiz
•
1st Grade
10 questions
Modalidades de Licencia

Quiz
•
1st Grade
10 questions
Lembar Kerja Mandiri-Hak dan Kewajiban Penghematan Energi

Quiz
•
1st Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade