Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

University

40 Qs

quiz-placeholder

Similar activities

PPKN

PPKN

1st Grade - University

45 Qs

Aptitude Test 4 (20 Jun 2021)

Aptitude Test 4 (20 Jun 2021)

University

41 Qs

UAS ERGONOMI

UAS ERGONOMI

University

40 Qs

Day-3 ESD 24-04-2020

Day-3 ESD 24-04-2020

University

40 Qs

QC2 Lab - Ex.11-15

QC2 Lab - Ex.11-15

University

40 Qs

Bài Thi ĐỐ EM KHỐI 12 - Vòng  loại

Bài Thi ĐỐ EM KHỐI 12 - Vòng loại

12th Grade - University

40 Qs

Bahasa Inggris Semua jurusan

Bahasa Inggris Semua jurusan

12th Grade - University

40 Qs

Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

Assessment

Quiz

Other

University

Easy

Created by

NAZMIRUL IZZAD BIN NASIR

Used 17+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?