AP CS A Quiz 5 PRACTICE

AP CS A Quiz 5 PRACTICE

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

MODULE 9 PRE-TEST

MODULE 9 PRE-TEST

10th Grade

10 Qs

9G4 CS Python Programming Sequence and Vocabs

9G4 CS Python Programming Sequence and Vocabs

9th Grade

13 Qs

Kuis PPJ - Materi VLSM

Kuis PPJ - Materi VLSM

11th Grade

15 Qs

информатика

информатика

11th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

AP CS A Quiz 5 PRACTICE

AP CS A Quiz 5 PRACTICE

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Scott Chamberlain

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Media Image

Consider a method defined with the header shown here.

Which of the following method calls is NOT legal?

Media Image
Media Image
Media Image
Media Image
Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?