0 of 11 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 11
Time has elapsed
0 of 0 point(s), (0)
0 of 0, (0)
Essay(s) Pending: 0 (Possible Point(s): 0)
Which of the following is an example of string concatenation?
Select one:
Abstraction is the process of simplifying something by reducing it to its key characteristics. This allows programmers to work with ideas and concepts on a higher level, without worrying about every little detail.
Which of the following is NOT an example of abstraction in Java programming?
Select one:
What does the acronym OOP stand for?
Select one:
Which of the following expressions will check if two String objects contain exactly the same characters?
Your strings are named first
and second
.
Select one or more:
What character is used to escape special characters in a Java string literal?
Select one:
Examine the following lines of code:
String original = "original string";
String changed = original + " changed";
What is the value of original
after the above statements?
You are working with a Person
object that has three String
properties: firstName
, middleName
, and lastName
.
You need to determine the initials of the Person
, which will be a String
of three characters.
Which String
method will best help you accomplish this task?
Select one:
Examine the code below:
String answer;
answer = "" + (5 + 5);
System.out.println(answer.length());
What will the program print to the console?
Examine the following lines of code:
String title = "The Fun Party";
title = title.toLowerCase();
System.out.println(title);
What will be printed to the console?
Examine the following lines of code:
String title = "The Fun Party";
title.toUpperCase();
System.out.println(title);
What will be printed to the console?
Unlike the int
and char
types, which are primitives, Strings are actual Java objects. Which of the following is true about both objects and primitive types?
Select one: