Auditorna 1

Auditorna 1

University

18 Qs

quiz-placeholder

Similar activities

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Java Básico

Java Básico

University

20 Qs

2.TR - 2.12.2024. - 01

2.TR - 2.12.2024. - 01

10th Grade - University

17 Qs

C - Structures

C - Structures

University

20 Qs

OOP

OOP

University

20 Qs

Array Java

Array Java

University

15 Qs

Java Programming

Java Programming

University

20 Qs

Java Operators

Java Operators

University

14 Qs

Auditorna 1

Auditorna 1

Assessment

Quiz

Computers

University

Medium

Created by

Ana Radović

Used 2+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Koja je ispravna deklaracija main metode?

public static main void(String[] args) { }

public void main(String[] args) { }

public static void main(String[] args) { }

public void main(String[] args) { }

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Koji je pravilno parsirani String?

int x = Integer.parse("123")

int x = int.parseInt("123")

int x = int.parse("123")

int x = Integer.parseInt("123")

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Koja je ispravna deklaracija polja?

int[] x = new int[3];

int x[] = new int[3];

int x = new int[3];

int[] x = new int[3]();

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Što će ispisati ovaj kod:
public static void main(String[] args) {

int[] x = new int[3];

System.out.println(x[1]);

}

NaN

0

Nasumični broj

1

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

{...

double broj = 2.0;

double noviBroj = broj;

...}

Što je stvorio operator = ?

Referencu na objekt u stogu

Referencu na objekt na hrpi

Novi objekt na stogu

Novi objekt na hrpi

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

{...

double broj = 2.0;

double noviBroj = broj.clone();

...}

Što je stvorila metoda clone?

Referencu na objekt u stogu

Referencu na objekt na hrpi

Novi objekt na stogu

Novi objekt na hrpi

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

{...

double broj = 2.0;

broj = 2.4;

...}

Što se stvorilo na stogu?

Dva doublea, 2.0 i 2.4

Samo double 2.0

Samo double 2.4

Double 2.0 koji je promijenjen u 2.4

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?