Data Structure Quiz

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 15

16 Terms

1

False

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

New cards
2

False

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

New cards
3

False

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

New cards
4

Function Definition

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

New cards
5

Row

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

New cards
6

Struct

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

New cards
7

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?

New cards
8

Recursive Function

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

New cards
9

Column

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

New cards
10

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

New cards
11

4 Bytes

What will be the value of sizeof(int)?

New cards
12

Void

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

New cards
13

N-1

How do we find the last index of an array?

New cards
14

Return

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

New cards
15

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

New cards
16

False

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

New cards

Explore top notes

note Note
studied byStudied by 10 people
760 days ago
5.0(1)
note Note
studied byStudied by 2 people
91 days ago
5.0(1)
note Note
studied byStudied by 14 people
807 days ago
5.0(1)
note Note
studied byStudied by 26 people
707 days ago
5.0(1)
note Note
studied byStudied by 1 person
56 days ago
5.0(1)
note Note
studied byStudied by 20 people
843 days ago
4.5(2)
note Note
studied byStudied by 78 people
700 days ago
5.0(2)
note Note
studied byStudied by 8 people
43 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (61)
studied byStudied by 13 people
544 days ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 18 people
755 days ago
5.0(2)
flashcards Flashcard (98)
studied byStudied by 4 people
724 days ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 14 people
460 days ago
4.0(1)
flashcards Flashcard (111)
studied byStudied by 137 people
485 days ago
5.0(3)
flashcards Flashcard (44)
studied byStudied by 2 people
40 days ago
5.0(1)
flashcards Flashcard (63)
studied byStudied by 86 people
845 days ago
4.5(2)
flashcards Flashcard (20)
studied byStudied by 74 people
73 days ago
5.0(2)
robot