CP-UNIT5

CP-UNIT5

12th Grade

11 Qs

quiz-placeholder

Similar activities

Foreign exchange

Foreign exchange

12th Grade

10 Qs

Guess the anime

Guess the anime

KG - Professional Development

6 Qs

Ant science

Ant science

5th Grade - University

11 Qs

Marketing and Sales 1.4

Marketing and Sales 1.4

9th - 12th Grade

9 Qs

Adopt me roblox quiz by stupidelephant911

Adopt me roblox quiz by stupidelephant911

KG - Professional Development

11 Qs

MODELACION Y MODELOS

MODELACION Y MODELOS

12th Grade

10 Qs

Rules of Conduct Quiz

Rules of Conduct Quiz

11th - 12th Grade

16 Qs

ABOUT TÜRKİYE

ABOUT TÜRKİYE

6th - 12th Grade

13 Qs

CP-UNIT5

CP-UNIT5

Assessment

Quiz

Other

12th Grade

Practice Problem

Medium

Created by

K vijina

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? int x, arr[5] = {1}; for (x = 0; x < 5; x++) printf("%d ", arr[x]);

1 followed by four garbage values
0 0 0 0 0
1 1 1 1 1
1 0 0 0 0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

char name[9]="Ramkumar"; What is stored in name[7] and name[8]?

'a' and ’r’
'r' and ’\0’
’\n’
'r' and garbege value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are the array of elements always stored in the memory locations?

continuous
contiguous
unceasing
unbroken

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to reverse the given string?

strrev()
strev()
streverse()
strreverse()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array and Structure are group of elements. But they differ from each other by one of the reasons listed. Choose the right option

Array has hetrogenous group of elements, whereas structure has homogenous group of elements.
Structure has hetrogenous group of elements, whereas Array has homogenous group of elements.
Array and Structure differ by their name only.
There is no significant difference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the advantages of arrays?

Objects of mixed data types can be stored
Elements in an array cannot be sorted
Index of first element of an array is 1
Easier to store elements of same data type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What values will be stored in the elements of a static array, if it is not initialized?

0
an undetermined value
a floating point value
\0

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?