java core (Kiem tra lan 1)

java core (Kiem tra lan 1)

University

10 Qs

quiz-placeholder

Similar activities

metodos de acceso

metodos de acceso

University

14 Qs

Abstract Classes & Collections v2.0

Abstract Classes & Collections v2.0

University

10 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

Programação Orientado a Objeto - prof Alan

Programação Orientado a Objeto - prof Alan

University - Professional Development

5 Qs

INTRODUCCIÓN A LA PROGRAMACIÓN – UTB/MSIONTIC2022

INTRODUCCIÓN A LA PROGRAMACIÓN – UTB/MSIONTIC2022

University

15 Qs

Preguntas sobre C#

Preguntas sobre C#

University

10 Qs

Recuperación sesión 02

Recuperación sesión 02

University

11 Qs

File Handling Text Files

File Handling Text Files

12th Grade - University

7 Qs

java core (Kiem tra lan 1)

java core (Kiem tra lan 1)

Assessment

Quiz

Instructional Technology

University

Medium

Created by

HuyPP2

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the correct syntax for java main method?

public void main(String[] args)

public static void main(string[] args)

public static void main()

none of the above

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Choose the appropriate data type for this field: isSwimmer

double

boolean

string

Int

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

If you want your condition to depend upon two conditions BOTH being true, What is the proper notation to put

between the two Boolean statements

!

||

&&

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Choose the appropriate data type for this value: 5.5

int

double

boolean

String

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is an assignment statement ?

Adding a number to an int

Assigning a multiplication

Assigning a name to a variable

Assigning a value to a variable

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Can you compare a boolean to an integer?

Yes

No

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

public static void main(String[] args) {

int a = 5;

int b = 25;

int c = 35;

int d = 123;

System.out.print(a++ + ++b - ++c + d++);

}

what is the result in that code?

117

118

119

120

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?

Discover more resources for Instructional Technology