Search Header Logo

Java for Geeks and Dummies

Authored by Nina Newlin

Computers

12th Grade - University

Used 17+ times

Java for Geeks and Dummies
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many percent of Fortune 500 companies use Java?

50%
40%
80%
90%

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What was the intended name of Java?

Oak
Pascal
C
C++

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following correctly initializes an array to contain four elements each with value 0?
I. int[ ] arr = { 0, 0, 0, 0};
II. int[ ] arr = new int[4];
III. int[ ] arr = new int[4];
     for(int i = 0; i < arr.length; i++)
       arr[i] = 0;

I only
I and II only
I, II, and III
I and III

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Create an array of 12 strings called months.

String[] months = new String[12];
String months = new String[12];
String[] months = new String[];
String[12] months = new String[];

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

An object is an instance of a:

parameter
method
class
application

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Whats the output for the following:
String myCat = "Kizzy Cat";
String partOfmyCat = Mcat.substring(4)
System.out.Println(partofMyCat); 

prints zzz Cat
prints yCat
Error " Exception in main thread"
prints y Cat

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Whats the output for the following:
String myCat = "Kizzy Cat";
String partOfmyCat = Mcat.substring(4)
System.out.Println(partofMyCat); 

prints zzz Cat
prints yCat
Error " Exception in main thread"
prints y Cat

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?