Mid Term Test in Computer Programming

Mid Term Test in Computer Programming

University

40 Qs

quiz-placeholder

Similar activities

3RD YEAR QUIZ

3RD YEAR QUIZ

University

38 Qs

ComProg Midterm

ComProg Midterm

University

35 Qs

Latihan Soal Informatika Kelas 7

Latihan Soal Informatika Kelas 7

7th Grade - University

35 Qs

Bootstrap Quiz

Bootstrap Quiz

University

35 Qs

Pre-Test AI by Morning

Pre-Test AI by Morning

University

40 Qs

Database Normalization Quiz

Database Normalization Quiz

University

40 Qs

OPP Revision Unit I & II

OPP Revision Unit I & II

University

35 Qs

35-77

35-77

University

43 Qs

Mid Term Test in Computer Programming

Mid Term Test in Computer Programming

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Mohd Noor Hafizee Bin Yahaya

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to print "Hello, World" in Java?

echo("Hello, World");

Console.WriteLine("Hello, World");

System.out.println("Hello, World");

print("Hello, World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is the entry point of a Java program?

run()

main()

start()

execute()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Java identifier for a variable?

1total

total_amount

@price

double

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of System.out.println("Java" + 101);?

Java101

Java

101

Syntax error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does the boolean type store?

Whole numbers

Decimal values

True or false

Text

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for modulus in Java?

*

/

%

#

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which built-in data type is used to store floating-point numbers in Java?

int

char

boolean

double

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?