stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Understanding Functions Flashcards | StudBud
Explore
/
Understanding Functions
Understanding Functions
15 terms
·
StudBud Administration
·
11 plays
Test your knowledge on the concepts and benefits of functions in programming
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
What does 'cmath' library provide?
Math functions
Network protocols
String manipulation
File operations
2
What is a function call?
Ending a function
Overloading a function
Executing a function
Defining a function
3
Which library is used for strings?
vector
cmath
iostream
string
4
What is the syntax for accessing an element in an array?
array.access
array[index]
array.element
array.value
5
In most programming languages, arrays are indexed starting from which number?
10
0
-1
1
6
Which part defines a function's behavior?
Function definition
Function call
Variable declaration
Function declaration
7
What is the purpose of an array?
To make decisions
To create loops
To perform mathematical calculations
To store multiple values in a single variable
8
What is the purpose of a function call?
To define function
To assign variable
To execute function
To declare function
9
What does a function call do?
Assigns variable
Defines function
Declares function
Executes function
10
Which part is written first?
Function definition
Variable declaration
Function call
Function declaration
11
Which keyword is used in function declaration?
char
float
void
int
12
Can a 1D array store multiple elements?
False
True
13
What is the main purpose of functions?
Code deletion
Code repetition
Code obfuscation
Code organization
14
What is a function's main benefit?
More typing
Confusion
Magic
Code reusability
15
Which part of an array declaration specifies the size of the array?
int
size
[]
var