AP CSA Unit One Review

AP CSA Unit One Review

Assessment

Flashcard

Created by

Quizizz Content

Computers

11th Grade

Hard

Student preview

quiz-placeholder

23 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following answer choices display the correct format for a Java main class?
Options:
public static void main(String [] args),
public void main static(String [] args),
public static main static(String [] args);
public static void main static(Int [] args),
public static main static(String {} args);

Back

public static void main(String [] args)

2.

FLASHCARD QUESTION

Front

Which of the following answer choices shows the output of the following snippet of code?
System.out.print(“Welcome back”);
System.out.println(“IA!”);
System.out.println(“Hope you had a great summer!”);

Back

Welcome backIA
Hope you had a great summer!

3.

FLASHCARD QUESTION

Front

Which of the following is NOT a Java Primitive Data Type: String, double, integer, char, boolean?

Back

String

4.

FLASHCARD QUESTION

Front

True or False: This code will run with no errors
public class QuizOne
{
public static void main(String[]args)
{
System.out.println(“Today is Monday”)
}
}

Back

False

5.

FLASHCARD QUESTION

Front

Which of the following lines of code will print “Hello IA” to the console: System.out.print(“Hello IA”), System.out.println(“Hello IA”);, System.outprint(Hello IA);, System.out.println(Hello IA)

Back

System.out.println(“Hello IA”);

6.

FLASHCARD QUESTION

Front

Assuming this code has a main class and runs with no errors, what will be the output on the console:
double z = 6.7;
int x = 4;
int y = 8;
z = x/y;
System.out.println(z);

Back

0.0

7.

FLASHCARD QUESTION

Front

What is the primary use of the Scanner class in Java?

Back

To read input of primitive data types and strings

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?