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 is the purpose of a function call?
To assign variable
To execute function
To declare function
To define function
2
Which keyword is used in function declaration?
int
void
char
float
3
What is a function's main benefit?
Magic
More typing
Code reusability
Confusion
4
What does 'cmath' library provide?
Network protocols
Math functions
String manipulation
File operations
5
What is the main purpose of functions?
Code repetition
Code organization
Code deletion
Code obfuscation
6
Can a 1D array store multiple elements?
True
False
7
Which part defines a function's behavior?
Function call
Variable declaration
Function definition
Function declaration
8
In most programming languages, arrays are indexed starting from which number?
0
-1
1
10
9
What is the syntax for accessing an element in an array?
array[index]
array.access
array.element
array.value
10
Which library is used for strings?
vector
string
iostream
cmath
11
What is a function call?
Executing a function
Defining a function
Overloading a function
Ending a function
12
What is the purpose of an array?
To make decisions
To store multiple values in a single variable
To create loops
To perform mathematical calculations
13
What does a function call do?
Assigns variable
Executes function
Declares function
Defines function
14
Which part of an array declaration specifies the size of the array?
size
[]
var
int
15
Which part is written first?
Function call
Function declaration
Function definition
Variable declaration