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 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
4.5 Stars(2)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 18 people
Updated ... ago
4.5 Stars(2)

Explore top flashcards

flashcards Flashcard187 terms
studied byStudied by 24 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard59 terms
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard65 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard105 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 39 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard103 terms
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 45 people
Updated ... ago
5.0 Stars(1)