AP CS A Semester 1 Review

AP CS A Semester 1 Review

10th - 12th Grade

33 Qs

quiz-placeholder

Similar activities

Pra PAT Informatika

Pra PAT Informatika

10th Grade

30 Qs

ĐỀ CƯƠNG ÔN TẬP HK1 TIN HỌC 11 - ĐỀ 911

ĐỀ CƯƠNG ÔN TẬP HK1 TIN HỌC 11 - ĐỀ 911

11th Grade

30 Qs

ULANGAN HARIAN 1 JARINGAN KOMPUTER  INFORMATIKA FASE E

ULANGAN HARIAN 1 JARINGAN KOMPUTER INFORMATIKA FASE E

10th Grade

29 Qs

Dzień bezpiecznego Internetu

Dzień bezpiecznego Internetu

12th Grade

29 Qs

1.2.2 Applications Generation

1.2.2 Applications Generation

12th Grade

28 Qs

Web Sitesi Tekrar

Web Sitesi Tekrar

10th Grade

30 Qs

2.6 Internet Address

2.6 Internet Address

12th Grade

29 Qs

ICT 10 - JAVA

ICT 10 - JAVA

9th - 12th Grade

30 Qs

AP CS A Semester 1 Review

AP CS A Semester 1 Review

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Lindsay Schwisow

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If String str has value "brouhaha", then the expression str.indexOf("ha") returns a value of 6.

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The expression "baseball".substring(2) returns "seball".

TRUE

FALSE

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If you wanted to check to see if two numerical values were equal, which operator would you use?
=
!=
equals
==

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To check if some integer x was evenly divisible by another integer y, which line of code would you use?
if ( x / y = 0)
if ( x / y == 0 )
if ( x % y == 0 )
if ( x % y = 0 )

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To generate a random integer between 10 - 100, which line of code would you use?
int randomInt = 10 + (int) ( Math.random() * ( ( 100 - 10 ) + 1 ) )
int randomInt = 10 + (int) Math.random() * ( ( 100 - 10 ) + 1 ) 
int randomInt = (int) ( Math.random(10, 100 )
int randomInt = (int) ( Math.random(10, 100)  ) + 1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would the result of this code be?
int x = 0;
while ( x < 5 )
{
System.out.print( "Hello" );
}
It would print "Hello" 5 times
It would print "Hello" 4 times
It would print "Hello" an infinite number of times.
It would print Hello once and then generate an error.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does this operator mean?
||
and
or
exclusive or
not equal to

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?