
CAI616 Quiz 1
Authored by Ayesha Abdullah
Other
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of data is used to enter the value ("Welcome")?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When we want to print in Java, we use the code ......
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
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?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
80 questions
ACT Math Important Vocabulary
Quiz
•
11th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
16 questions
ACT English - Grammar Practice #2
Quiz
•
11th Grade
12 questions
Unit 8: The Early Cold War
Quiz
•
11th Grade