Which of the following replacements for /* missing code */ would correctly complete the function?
AP Java 9-15-2023 (just functions1)

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Arthur Simon
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A only
B only
Both A and B
Neither A nor B
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
answer = number1 * number2;
double answer = number1 + number2;
int answer = number1 * number2;
None of these
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
a + b + c;
return int answer = a + b + c;
return double answer = a + b + c;
return a + b + c;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
return a + b + c/2;
return a + b + c/3;
return (a + b + c)/2;
return (a + b + c)/3;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
return num1 / num2;
return num1 % num2;
return num2 % num1;
return num2 / num1;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
A
B
C
D
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following replacements for /* missing code */ would correctly complete the function?
A only
B only
Both A and B
Neither A nor B
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
11 questions
Python Review

Quiz
•
11th Grade
11 questions
recap DIN h446

Quiz
•
12th Grade
10 questions
PCEP Section 4B: the function and its environment

Quiz
•
12th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
15 questions
Programming Quiz 1-3 | LPE-101 by Mettle X

Quiz
•
9th - 12th Grade
15 questions
Program Development - Python: Conditionals

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University