OOP Programming Technique And Data & Variable

OOP Programming Technique And Data & Variable

University

15 Qs

quiz-placeholder

Similar activities

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Web Designing Quiz-2

Web Designing Quiz-2

University

10 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

TES AWAL MODUL 2

TES AWAL MODUL 2

University

10 Qs

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

uas-siber

uas-siber

University

10 Qs

OOP Programming Technique And Data & Variable

OOP Programming Technique And Data & Variable

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

azlina ibrahim

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Assume that you have create and save some Java code in the text editor, choose the correct order to compile and run Java using command prompt.

I. set path

II. type the java command

III. type the javac command

I,II,III

III,II,I

I,III,II

II,I,III

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose the syntax of a class named Student with variable named studentName

class Student

{

char studentName;

}

class Student

{

int studentName;

}

class Student

{

studentName;

}

class Student

{

String studentName;

}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define terminologies used to describe the data component in UML class diagram

Method

Attribute

Class

Object

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Determine the output of the program below

class q2{

public static void main(String args[]){

System.out.println("I love Java!");

System.out.println("I love Java.");

}

}

I love Java.

I love Java!

I love Java. I love Java!

I love Java!

I love Java.

I love Java! I love Java.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt


Determine the output of the program below

class q1{

public static void main(String args[]){

System.out.print("I love Java!");

System.out.println("I love Java.");

}

}

I love Java.

I love Java!

I love Java. I love Java!

I love Java!

I love Java.

I love Java! I love Java

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the right statement about Java Data types.

Integer data types are short, int and long

The character data type is char.

Real number data types are float and double


All the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


Which is the data type that is not recommended for numeric applications in Java?

int

double

byte

float

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