Data Structure Quiz

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

False

True or False| Arrays, stacks, graphs, linked lists, and trees are the examples of a non-linear data structure.

2
New cards

False

True or False| An array element can be accessed by its size

3
New cards

False

True or False | Structures are created so that we can break down huge tasks into smaller subroutines.

4
New cards

Function Definition

This aspect of a function contains the tasks of the function when called. They are enclosed in { and }.

5
New cards

Row

In a two-dimensional array, this value is placed as the first size.

6
New cards

Struct

This is the keyword used in creating a structure in C++,

7
New cards

32

Suppose you have an array of integers arr (32, 45, 67, 89, 109). If the value of int index is 0, and I added the statement cout<<arr[index++];, what will be the output?

8
New cards

Recursive Function

This type of function refers to where they call themselves repeatedly, while the input value changes every turn.

9
New cards

Column

In traversing a two-dimensional array, a nested loop is used. The inner loop is used for this part of the array.

10
New cards

Array

This is a linear data structure that is a container of multiple elements of similar data types. What will be the value of sizeof(int)?

11
New cards

4 Bytes

What will be the value of sizeof(int)?

12
New cards

Void

This keyword is used if the function does not require to return a value.

13
New cards

N-1

How do we find the last index of an array?

14
New cards

Return

This refers to the value that comes from the function after being called.

15
New cards

void showpretty {

Cout <<"Maam Fatima is pretty",

}

Write a function named showPretty, without parameters and a return value, and will display "Ma'am Fatima is pretty." in the console when called. No need to write the name function

16
New cards

False

True or False| There can be multiple main methods in a single C++ program.