
Unit 2 Final Quizz

Quiz
•
Computers
•
University
•
Hard
Shubham Khari
Used 7+ times
FREE Resource
54 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int arr[] = {1, 2, 3, 4, 5}; printf("%d", arr[2]);
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the last element in an array of size 10 in C?
9
10
11
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an array element in C if it is not initialized?
0
Garbage value
-1
Depends on the data type
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int arr[] = {10, 20, 30, 40, 50}; printf("%d", arr[1] + arr[3]);
30
60
70
90
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an integer array of size 5 in C?
int arr(5);
int arr[5];
arr int[5];
arr(5) int;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[4]);
5
4
3
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly assigns a value to the second element of the array `arr` in C?
arr(2) = 5;
arr[2] = 5;
arr[1] = 5;
arr = 5;
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Midterm Examination

Quiz
•
University
50 questions
KLA Quiz Struktur Data UAS

Quiz
•
University
53 questions
Java Fundamentals Challenge

Quiz
•
University
50 questions
Data Structures Quiz

Quiz
•
University
58 questions
C language

Quiz
•
University
52 questions
ИКТ ЖБ100

Quiz
•
University
50 questions
INFORMATIKA KELAS XII (ARDUINO)

Quiz
•
12th Grade - University
56 questions
J277/02 Computational thinking, algorithms and programming

Quiz
•
9th Grade - University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University