Data Structure Quiz

studied byStudied by 1 person
0.0(0)
get a hint
hint

False

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 14 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 20 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 28 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 127 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 19 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard35 terms
studied byStudied by 16 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard81 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard117 terms
studied byStudied by 7 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard144 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard64 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard89 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard31 terms
studied byStudied by 34 people
Updated ... ago
5.0 Stars(1)