Search Header Logo

Pretest PO-1 A

Authored by Rezki Yuniarti

Computers

University

Used 2+ times

Pretest PO-1 A
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In this framework, all real-world entities are represented by Classes.

Functional Programming

Logical Programming

Object-Oriented Programming

Procedural Programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates an object of Main class?

Main obj = new Main;

Main obj = new Main();

Main obj = new Mian();

Main obj == new Main();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the complete syntax of creating a class?

public class Main { }

public class Main() { }

public class Main

public class Main()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Methods are declared within a class.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

static void myMethod(){ }

What is the name of the method?

static void myMethod

void myMethod

static myMethod

myMethod

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements calls a method greetings and pass a value to that method?

greetings();

greeting("Hello, world!");

greetings("Hello, world!");

greetings(Hello, world!);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is not a Java primitive data type?

float

byte

Boolean

char

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?