Search Header Logo

AP CSA| Final S2 Exam Review by Mr. B

Authored by Cyber Professor - Mr. B

Computers

12th Grade

Used 3+ times

AP CSA| Final S2 Exam Review by Mr. B
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

  Which of the following is a valid constructor declaration for the Cube class?

 

I. public static Cube()

II public void Cube()

III.   public Cube()

IV.   public Cube(int side)

III and IV only 

I only

III only

II only

I and II only

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the exact output of the following code?

 int radius = 3;

 double pi = 3.142;

 double area = pi*( radius * radius );  System.out.print("area ");

 System.out.print(area);

area 28.278  

28.278 28.278

area 28

there will be an error because of incompatible data types 

3.

FILL IN THE BLANKS QUESTION

1 min • 5 pts

What value is the result of evaluating this expression? 

       (5 * 3 - 4 / 2 ) % 3 

(a)  

4.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Which of the following paired correctly?

  <label> : it defines a label for an input element.

<textarea> : it defines a caption for a<fieldset> element.

<button> : it defines a clickable button.

<fieldset> : it defines an HTML form to enter inputs by the user.

5.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

What is a subclass ?

Tests out code and can run with errors  

Where the class gains attributes and methods of another 

Argument defined as variables under a function.

A type a class that is specified under a normal class, inheriting the features of the normal class

6.

MULTIPLE SELECT QUESTION

1 min • 3 pts

An expression is a combination of operands and operators that evaluate to a single value. 4 + 6 = (a)  or 21 - 3  (b)  = 15.0  

15%

10

2.0

8

17

7.

MULTIPLE SELECT QUESTION

1 min • 4 pts

Which of these relational operators is part of the JOIN operator? Select all that apply.

UNION

PRODUCT

SELECT

PROJECT

Access all questions and much more by creating a free account

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?