Q1Programming

Q1Programming

University

8 Qs

quiz-placeholder

Similar activities

NSTP 1- Quiz No.1

NSTP 1- Quiz No.1

University - Professional Development

10 Qs

FIM Week 4 Tutorial

FIM Week 4 Tutorial

University

10 Qs

CCHU5001_Week 3_Quiz

CCHU5001_Week 3_Quiz

University

10 Qs

RQA Bulletin V4

RQA Bulletin V4

University

10 Qs

Quizz PKN Kelas VIII Arti Makna sumpah pemuda

Quizz PKN Kelas VIII Arti Makna sumpah pemuda

University

10 Qs

CAREER DISCOVERY SERIES (BEYOND BORDERS)

CAREER DISCOVERY SERIES (BEYOND BORDERS)

University

10 Qs

GREEN TRANSPORTATION

GREEN TRANSPORTATION

University

10 Qs

EcoS5 QuizzA

EcoS5 QuizzA

University

10 Qs

Q1Programming

Q1Programming

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Omnia Elrashidy

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...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Java is a

low-level programming language

not object-oriented (class-based) programming language

functional, imperative and reflective programming language

All the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a correct Java program to print "Hello World!" on output ?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for OR comparison in Java?

+

||

==

&&

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following program?

public class Main {

public static void main(String[] args) {

int x = 10;

x++;

System.out.println(x);

} }

10

11

9

Compile-time error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following program?

public class Main {

public static void main(String[] args) {

int x = 10;

int y = 2;

int result = x % y;

System.out.println(result); } }

2

2.5

1

0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following program?

public class Main {

public static void main(String[] args) {

boolean a = false;

boolean b = false;

boolean result = a || b;

System.out.println(result); } }

true

false

Compile-time error

Runtime error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which operator is used to decrement a variable by one in Java? 

++

--

+=

*=

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?