Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

University

40 Qs

quiz-placeholder

Similar activities

Kuis Robotika

Kuis Robotika

University

40 Qs

UJIAN SUMATIF AKHIR SEMESTER GAZAL (USAS) PKK KELAS 12 2025

UJIAN SUMATIF AKHIR SEMESTER GAZAL (USAS) PKK KELAS 12 2025

12th Grade - University

40 Qs

CHE 135-HAZARD AND RISK ASSESSMENT

CHE 135-HAZARD AND RISK ASSESSMENT

University

40 Qs

Administrasi Pajak

Administrasi Pajak

10th Grade - University

45 Qs

regular verbs french

regular verbs french

7th Grade - University

39 Qs

MCN SL EXAM PRELIM

MCN SL EXAM PRELIM

University

40 Qs

MIDTERM LONG QUIZ

MIDTERM LONG QUIZ

University

36 Qs

Operation Management - Prefinals

Operation Management - Prefinals

University

39 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 17+ 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?