Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Methods Quiz

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
10
1
1
1
1
1
1
1
1
1
1
Pitanje 1
1.

What is a method?

Pitanje 2
2.

When writing a method, you must always have an open and close what ?

Pitanje 3
3.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("fun");

}

}

//code in the main of another class

CS test = new CS();

test.one();

Pitanje 4
4.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("fun");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.one();

Pitanje 5
5.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("fun");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.one();

test.one();

test.one();

Pitanje 6
6.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("go");

}

public void two()

{

System.out.print("back");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.two();

Pitanje 7
7.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("go");

}

public void two()

{

System.out.print("back");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.two();

test.two();

Pitanje 8
8.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("go");

}

public void two()

{

System.out.print("back");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.two();

test.one();

test.two();

Pitanje 9
9.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("go");

}

public void two()

{

System.out.print("back");

}

}

//code in the main of another class

CS test = new CS();

test.two();

test.one();

test.two();

Pitanje 10
10.

What is output by the code below?

public class CS

{

public void one()

{

System.out.print("go");

}

public void two()

{

System.out.print("back");

}

}

//code in the main of another class

CS test = new CS();

test.one();

test.two();

test.two();

test.one();