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 143 people
26 days ago
5.0(1)
note Note
studied byStudied by 3 people
813 days ago
5.0(1)
note Note
studied byStudied by 34 people
1000 days ago
5.0(1)
note Note
studied byStudied by 10 people
769 days ago
5.0(1)
note Note
studied byStudied by 98 people
506 days ago
4.5(2)
note Note
studied byStudied by 10 people
807 days ago
5.0(1)
note Note
studied byStudied by 14 people
124 days ago
5.0(1)
note Note
studied byStudied by 1837 people
269 days ago
5.0(5)

Explore top flashcards

flashcards Flashcard (222)
studied byStudied by 16 people
94 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 36 people
799 days ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 5 people
342 days ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 6 people
72 days ago
5.0(2)
flashcards Flashcard (23)
studied byStudied by 25 people
697 days ago
5.0(3)
flashcards Flashcard (56)
studied byStudied by 12 people
484 days ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 5 people
284 days ago
5.0(1)
flashcards Flashcard (80)
studied byStudied by 98 people
735 days ago
5.0(1)
robot