Chapter1

Chapter1

Professional Development

20 Qs

quiz-placeholder

Similar activities

Pre Test Fundamental Kotlin

Pre Test Fundamental Kotlin

Professional Development

20 Qs

Computación básica - Conceptos básicos

Computación básica - Conceptos básicos

Professional Development

15 Qs

PROGRAMACION.1.Conceptos Básicos

PROGRAMACION.1.Conceptos Básicos

Professional Development

15 Qs

QUIZ-5 static, String and StringBuffer

QUIZ-5 static, String and StringBuffer

Professional Development

20 Qs

OCA Unit 1

OCA Unit 1

11th Grade - Professional Development

23 Qs

Java Quiz on Module 1 & 2

Java Quiz on Module 1 & 2

Professional Development

21 Qs

Java

Java

Professional Development

25 Qs

Java Quiz

Java Quiz

Professional Development

20 Qs

Chapter1

Chapter1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Ngọc Phan

Used 9+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Media Image

What will happen when you compile and run the following code?

}

}

1 will be printed out

2 will be printed out

A compile time error will be generated

An exception will be thrown

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which will be compiled

double a = 100.0;

double a = 100_.0;

double a = 1_000.0;

double a = _100.0;

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which will be compiled

int val = null;

int val = 1;

int val = 1;

int len = val.length();

String val = "hello";

int len = val.length();

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which will be compiled

String main;

String $val;

String 1val;

String const;

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following legally fill in the blank so you can run the main() method from the command line?

public static void main(______)

String _name []

String [] 123

String ... abc

String [] $n

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which method declarations will enable a class to be run as a standalone program?

static void main(String args[ ])

public void static main(String args[ ])

public static main(String[ ] argv)

final public static void main(String [ ] array)

public static void main(String args[ ])

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the following code print when run? 

Hello

It will not print anything.

It will not compile

It will throw an Error at runtime.

None of the above.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?