APCSA Unit 4 test
Quiz
•
Computers
•
9th Grade
•
Hard
Thomas Wright
Used 16+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a method that loops until the user inputs the correct secret password or until the user fails to enter the correct password 10 times. The secret password the program should look for is the String "secret"
Assume that a Scanner object called input has been correctly initialized.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the method call myMethod("Karel The Dog", 'e') return?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of error would the method call myMethod("Frog") cause?
Compile Time Error: String index out of range
Runtime Error: String index out of range
Compile Time Error: Unexpected return value
Runtime Error: Syntax Error in method definition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the call to the method funWithNumbers(314159) print to the screen?
314159
951413
314
951
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the call to the method someMethod(3,1) output?
9
12
11
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a method that will ask for user input until user inputs the String “no”. Allow the user to input any capitalization of the String “no” (“no”, “No”, “NO”, “nO”) Also, have the method return the number of loops.
Assume that a Scanner object input has already been created.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the call to method patternGrid(3,4,'#') print?
####
####
####
###
###
###
####
####
####
####
This code will error.
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Soal Pemrograman Bahasa C
Quiz
•
9th Grade
30 questions
Python Programming End of Unit Assessment
Quiz
•
7th - 9th Grade
34 questions
Python Seviye 1
Quiz
•
5th - 12th Grade
40 questions
Java Basics Review (And Strings)
Quiz
•
9th - 12th Grade
35 questions
Unit 8 Test Practice
Quiz
•
9th Grade
35 questions
PLTW CSE Unit 1.3 Review
Quiz
•
9th - 12th Grade
36 questions
Poglavlje 5 (5.1, 5.2, 5.3 i 5.4.1)
Quiz
•
9th Grade
40 questions
Основи програмування (Іспит)
Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques
Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems
Interactive video
•
7th - 12th Grade
