AP CS A Quiz 5 PRACTICE

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Chamberlain
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What mistake is in the following code?
It should say return true
The return value should be cast to a double
The parameter should be a double type
A method whose return type is void cannot return a value
In a return statement, calculations cannot be done
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider a method defined with the header shown here.
Which of the following method calls is NOT legal?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When you pass an int variable to a method, the method receives ______.
a copy of the memory address
the reference of the variable
the length of the variable
a copy of the variable
binary of the memory address
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following method.
Which of the following methods produce the same results?
I only
II only
III only
I and II
I, II, and III
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is NOT a way Java tells overloaded methods apart?
the return type
the number of parameters
the type of parameters
the order of parameters
All these items can be used to tell overloaded methods apart
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Given the following code, what is output by the method call, mystery(7, 5)?
A
B
C
D
nothing is printed - there is an error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following method which makes use of the edhesive.shapes.Circle class.
What is printed when the following code in the main method is executed?
2 2
2 6
6 2
6 6
nothing is printed, an error occurs
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
Java Basic Syntax Quiz

Quiz
•
10th Grade
15 questions
Quiz 142 - Python inputs and outputs

Quiz
•
9th Grade - University
10 questions
AND_OR Excel Functions Quiz

Quiz
•
9th Grade - University
5 questions
AP CSA 5.6/5.7 (Methods & Static)

Quiz
•
10th Grade
15 questions
002_Java Methods

Quiz
•
12th Grade - University
10 questions
Grade 9 - User Defined Methods

Quiz
•
9th Grade
12 questions
Java Class vocabulary

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade