DSTR Week 4 Revision Question

DSTR Week 4 Revision Question

University

10 Qs

quiz-placeholder

Similar activities

Data Analytics using Python - Quiz 2

Data Analytics using Python - Quiz 2

University

15 Qs

Python Pre-Cal Quiz

Python Pre-Cal Quiz

University

10 Qs

TIU Quiz-4

TIU Quiz-4

University

10 Qs

Python Quiz

Python Quiz

University

12 Qs

C# chapter 1

C# chapter 1

University

10 Qs

unit3 pointers

unit3 pointers

University

10 Qs

Java Programming-1

Java Programming-1

University

10 Qs

Java Quiz based on array

Java Quiz based on array

University

15 Qs

DSTR Week 4 Revision Question

DSTR Week 4 Revision Question

Assessment

Quiz

Computers

University

Hard

Created by

Chong May

Used 11+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

5

0

Compilation error

Undefined behavior

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the array int arr[5] = {10, 20, 30, 40, 50};,
what will be the result of sizeof(arr) / sizeof(arr[0])?

4

5

10

20

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you have an array int arr[10];, what is the index of the middle element?

4

5

6

It depends on how the user has defined it.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

3

4

6

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

1

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

Address of x

10

Address of ptr

Compilation error

Garbage value
(random, undefined, or uninitialized value)

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code snippet?

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?