CAI616 Quiz 1

Quiz
•
Other
•
11th Grade
•
Medium
Ayesha Abdullah
Used 2+ times
FREE Resource
Student preview

6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("Hello System.out.println");
System.out.print("!!!");
What is printed as a result of executing the code segment?
Hello!!!
Hello System.out.println!!!
Hello System.out.println
!!!
Hello
!!!
No output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("AP");
System.out.println();
System.out.println("CS");
System.out.print("A");
What is printed as a result of executing the code segment?
APCSA
APCS
A
AP
CSA
AP
CS
A
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print(I do not fear computers. ); // Line 1
System.out.println(I fear the lack of them.); // Line 2
System.out.println(--Isaac Asimov); // Line 3
The code segment is intended to produce the following output but may not work as intended.
I do not fear computers. I fear the lack of them.
--Isaac Asimov
Which change, if any, can be made so that the code segment produces the intended output?
In line 1, print should be changed to println.In line 1, print should be changed to println.
In lines 2 and 3, println should be changed to print.In lines 2 and 3, println should be changed to print.
The statement System.out.println() should be inserted between lines 2 and 3.
In lines 1, 2, and 3, the text that appears in parentheses should be enclosed in quotation marks.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print(*); // Line 1
System.out.print("*"); // Line 2
System.out.println(); // Line 3
System.out.println("*"); // Line 4
The code segment is intended to produce the following output, but may not work as intended.
**
*
Which line of code, if any, causes an error?
Line 1
Line 2
Line 3
Line 4
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
13 questions
8th - Unit 1 Lesson 3

Quiz
•
9th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
21 questions
SPANISH GREETINGS REVIEW

Quiz
•
9th - 12th Grade
25 questions
Government Unit 1

Quiz
•
7th - 11th Grade