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 9 people
... ago
5.0(1)
note Note
studied byStudied by 275 people
... ago
5.0(6)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 202 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (175)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 20 people
... ago
5.0(1)
flashcards Flashcard (73)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 16 people
... ago
4.0(1)
flashcards Flashcard (60)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (101)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (116)
studied byStudied by 7 people
... ago
5.0(1)
robot