Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

University

40 Qs

quiz-placeholder

Similar activities

Practice quiz -Corporate Law

Practice quiz -Corporate Law

University

42 Qs

HMPE11 MIDTERM EXAM

HMPE11 MIDTERM EXAM

University

45 Qs

Module I: Understanding Operating Systems

Module I: Understanding Operating Systems

12th Grade - University

45 Qs

Credit and Loans

Credit and Loans

8th Grade - University

42 Qs

Diuretics- Khan

Diuretics- Khan

University

42 Qs

UTS Workshop Pengendalian Proses

UTS Workshop Pengendalian Proses

University

40 Qs

Formative assessment 1

Formative assessment 1

University

35 Qs

RBT T3 B1

RBT T3 B1

11th Grade - University

45 Qs

Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

Assessment

Quiz

Other

University

Practice Problem

Easy

Created by

NAZMIRUL IZZAD BIN NASIR

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is used to start a single-line comment in Java?

#

//

/*

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is not a valid data type in Java?

byte

int

string

float

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a variable that stores a whole number?

int num;

whole num;

double num;

number num;

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following will correctly output 10Java?

System.out.println(10 + Java);

System.out.println(10 + "Java");

System.out.println(Java + 10);

System.out.print(10 Java);

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the result of System.out.println(2 + 3 * 4);?

20

14

24

10

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to store a single character?

char

String

boolean

int

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java programs are compiled to an intermediate form called:

Source code

Assembly

Bytecode

Machine code

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?