OOP evaluation

OOP evaluation

University

13 Qs

quiz-placeholder

Similar activities

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

II MCA ASP.NET ONLINE QUIZ

II MCA ASP.NET ONLINE QUIZ

University

15 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Monday Week#2

Monday Week#2

University

15 Qs

EMERGINGX

EMERGINGX

University

15 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Computer Security:Encryption

Computer Security:Encryption

10th Grade - University

10 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

OOP evaluation

OOP evaluation

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

pubudu s

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public class Example {

public static void main(String[] args) {

String str1 = "hello";

String str2 = "world";

String result = str1 +" "+ str2;

System.out.println(result);

}

}

helloworld

hello world

worldhello

Compilation Error

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What would the new value of A be?

A=5;

System.out.println(A++);

6

3

5

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what's the output of below code?

public static void main(String []args){

int z =50;

System.out.println(x);

m();

}

public static void m(){

int z =55;

System.out.println(x);

}}

55,50

55,55

50,55

50,50

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code output?

int x = 1;

System.out.println(++x);

1

2

compilation error

runtime error

5.

MULTIPLE SELECT QUESTION

30 sec • 2 pts

Which statement(s) are equivalent to i = i + 1?

i += 1

i--

i -= 1

i++

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

If a=10, b=5, c=12

Find result for : 8 * (a + b + c) – a % c

78

206

77

216

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

public class A{

int h =10;

static int p=20;

public static void main(String args[]){

int x =5;

System.out.println(x);

System.out.println(p);

System.out.println(h);

}

}

5,20,Erorr

Error

Error,5,20

5,20,10

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?

Discover more resources for Computers