Unit 2 Final Quizz

Unit 2 Final Quizz

University

•

54 Qs

quiz-placeholder

Similar activities

CBT - Revision # 3

CBT - Revision # 3

12th Grade - University

•

54 Qs

ES084 Final Exam

ES084 Final Exam

University

•

50 Qs

XIRPL2_PASQUIZZ

XIRPL2_PASQUIZZ

1st Grade - Professional Development

•

50 Qs

Digital Marketing Test 1

Digital Marketing Test 1

University

•

50 Qs

HPC 3 - Applied Business Tools and Technologies w/ Lab Midterm E

HPC 3 - Applied Business Tools and Technologies w/ Lab Midterm E

University

•

52 Qs

Bisnis Online

Bisnis Online

University

•

50 Qs

#2 CIW Data Analyst - Certification Prep

#2 CIW Data Analyst - Certification Prep

9th Grade - University

•

54 Qs

Application Software Quiz

Application Software Quiz

12th Grade - University

•

50 Qs

Unit 2 Final Quizz

Unit 2 Final Quizz

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Shubham Khari

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?