CP-UNIT5

CP-UNIT5

12th Grade

11 Qs

quiz-placeholder

Similar activities

TOPIC 8 (i) ACCOUNTING FOR INVENTORIES

TOPIC 8 (i) ACCOUNTING FOR INVENTORIES

12th Grade

10 Qs

KIDS FOR UNSDG

KIDS FOR UNSDG

3rd - 12th Grade

15 Qs

Computer System Servicing: Occupational Health and Safety

Computer System Servicing: Occupational Health and Safety

10th Grade - University

15 Qs

Vet nursing so far...

Vet nursing so far...

12th Grade

14 Qs

Chayamana Quiz Competition

Chayamana Quiz Competition

1st Grade - University

15 Qs

regional cuisine

regional cuisine

12th Grade

15 Qs

Emotions? Related to mental health?

Emotions? Related to mental health?

1st Grade - Professional Development

15 Qs

PIPING TECHNIQUES

PIPING TECHNIQUES

9th Grade - University

10 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?