OOP evaluation

OOP evaluation

University

13 Qs

quiz-placeholder

Similar activities

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Avaliação Laboratório de Software e WEB

Avaliação Laboratório de Software e WEB

University

10 Qs

QUIZ TECH EASY ROUND!

QUIZ TECH EASY ROUND!

University

10 Qs

Variables and Functions

Variables and Functions

KG - University

10 Qs

Coleções - Python

Coleções - Python

University - Professional Development

17 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Archivos

Archivos

University

17 Qs

EDA PARTE 2

EDA PARTE 2

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