If you want the method to return a value, you can use a primitive data type instead of void, and use the ____ keyword inside the method.
(use small letters and space if necessary)
DSA - Q1
Quiz
•
Computers
•
University
•
Medium
jenelyn luna
Used 35+ times
FREE Resource
25 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
If you want the method to return a value, you can use a primitive data type instead of void, and use the ____ keyword inside the method.
(use small letters and space if necessary)
2.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
A data structure which is a programming technique you can use in which a method calls itself to solve a problem.
(use small letters and space if necessary)
3.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
____ is a collection of elements used to store the same type of data.
(use small letters and space if necessary)
4.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
int num[ ] = {11, 2, 99, 4, 33, 14, 18};
How would you access the fourth element in num.
(no spacing in writing the answer)
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
A recursive method is ________
a method that cannot be called more than once
a method that will never iterate infinitely
a method that invokes itself by name within the method
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Index values of an array ranges from ________.
0 to length
1 to length
1 to length
0 to length-1
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
The program may run out of memory in a ___
non-recursive function call
condition when too many variables are declared
recursive function call
none of the above
21 questions
OOP - session 2.1 - JVM, Array, Stack
Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz
Quiz
•
KG - Professional Dev...
26 questions
String in C Programming
Quiz
•
University
20 questions
CCE-III Programming in C Language
Quiz
•
University
20 questions
Bertelsmann AI Track Quiz Initiative #3
Quiz
•
University - Professi...
20 questions
Zenorix 2023
Quiz
•
University
20 questions
Sjmit-Q2-[Workshop-MAR-25]
Quiz
•
12th Grade - University
20 questions
Pointers
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade