Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

University

40 Qs

quiz-placeholder

Similar activities

ACC Quiz

ACC Quiz

University

35 Qs

TECHNICAL QUIZ

TECHNICAL QUIZ

University

45 Qs

DST Quiz Bee

DST Quiz Bee

University

40 Qs

Java1-Week4

Java1-Week4

University

37 Qs

Fundamental MVC dan Laravel

Fundamental MVC dan Laravel

University

35 Qs

WPR MidTerm

WPR MidTerm

University

39 Qs

ARDUINO BOARD

ARDUINO BOARD

10th Grade - University

35 Qs

Database Systems Final Exam

Database Systems Final Exam

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 4+ 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Other