AP Computer Science A Unit 1

AP Computer Science A Unit 1

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

HTML

HTML

8th - 12th Grade

15 Qs

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

9th Grade

20 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

Quiz Inf X.B

Quiz Inf X.B

10th Grade - University

20 Qs

HTML and CMS

HTML and CMS

9th Grade

15 Qs

Vocabulary of Computer

Vocabulary of Computer

12th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

AP Computer Science A Unit 1

AP Computer Science A Unit 1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Christopher Shears

Used 61+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following does NOT describe a Java Class?

The container for all of our programs

One of the primitive data types

A blueprint that defines the characteristics of an

object

The class title must match the name of the file in

which you are working

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is NOT a function of the Java compiler?

Checks comments for grammar and spelling

Validates syntax of program code

Translates code to machine language

Links in external libraries

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the origin of the term "computer bug"?

It was named after Computer science pioneer Grace Hopper ("grasshopper")

The first bug was found by a programmer who drove a Volkswagen Beatle

Finding computer bugs makes programmers nauseous (stomach bug)

A moth shorted out the early Mark II computer

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the println method do differently than print?

Sends output to a printer

Keeps output on the current line

Forces output to the next line

Allows you to omit quotation marks

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is the correct syntax for defining a new Scanner variable?

Scanner scan = new Scanner(System.in);

System.in.scan(Scanner);

Scanner = new.scan.System;

scan = System.in.nextScan();

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid variable name in Java?

first name

99problems

print

a_1_sauce

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Assuming that n is a variable for someone's name, which of the following commands is correct?

System.out.println("Happy Birthday n");

System.out.println("Happy Birthday + n");

System.out.println("Happy Birthday " & n);

System.out.println("Happy Birthday " + n);

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?