
AP CS Test 0 Module 1
Authored by Katherine Boward
Computers
9th - 12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1. Consider the following code segment.
System.out.println("\"This is my output.\"");
This is my output.
"This is my output."
"\"This is my output.\""
\"This is my output.\"
Nothing, it will produce an error.
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A teacher asks the class to write Java program that produces the following output:
fee fi fo fum
Which of the following complete programs correctly produces this output?
I. public class MyClass {
public static void main(String[] args) {
System.out.println("fee fi fo fum");
}
}
II. public class MyClass {
public static void foFum() {
System.out.println("fo fum");
}
public static void feeFi() {
System.out.print("fee fi ");
}
public static void main(String[] args) {
feeFi();
foFum();
}
}
III. public class MyClass {
public static void feeFi() {
System.out.print("fee fi ");
foFum();
}
public static void foFum() {
System.out.println("fo fum");
}
public static void main(String[] args) {
feeFi();
}
}
I only
II only
III only
I and II
I, II and III
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a static method?
a named group of statements
a single word in a program
the names of classes, methods, variables
a sequence of characters
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
what is the difference between print and println
print() prints the given content & println() prints the given content on a new line
There is no difference
print() prints the given content on a new line & printn() prints the given content
defines and declares to print the program using a printer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following Java statement.
System.out.println(" Hello World ")
Which of the following is true about this Java statement?
The statement contains a String literal that is missing a quotation mark " at its end.
The statement is missing a semicolon
The statement uses incorrect capitalization (uppercase / lowercase)
The statement uses braces [ ] instead of parentheses ( )
There are no errors in this statement.
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Consider the following Java statement.
system.out.println("Don't forget to study for your exam);
Which of the following is true about this Java statement?
The statement contains a String literal that is missing a quotation mark " at its end.
The statement is missing a semicolon
The statement uses incorrect capitalization (uppercase / lowercase)
The statement uses braces [ ] instead of parentheses ( )
There are no errors in this statement.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct
public class MyFile {
Public class MyFile {
public Class MyFile {
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
21 questions
QUIZ #4 LESSON 4
Quiz
•
11th Grade
20 questions
Ulangan Harian I Teknologi Layanan Jaringan (softswitch & VoIP)
Quiz
•
12th Grade
14 questions
ABC in python
Quiz
•
9th Grade
20 questions
UAS Administrasi Infrastruktur Jaringan - Routing Dinamis
Quiz
•
11th Grade
14 questions
Unit 2, 1.5 World Wide Web (www) technologies
Quiz
•
12th Grade
20 questions
Artificial Intelligence and SketchUp
Quiz
•
8th - 10th Grade
20 questions
Jaringan Komputer
Quiz
•
9th - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade