Mid Term Test in Computer Programming

Mid Term Test in Computer Programming

University

40 Qs

quiz-placeholder

Similar activities

LU3: Project Proposal Development Quiz

LU3: Project Proposal Development Quiz

University

40 Qs

Uji Pengetahuan Komputer

Uji Pengetahuan Komputer

10th Grade - University

35 Qs

Câu hỏi về hàm Excel

Câu hỏi về hàm Excel

University

35 Qs

Quiztronic

Quiztronic

University

40 Qs

Lecture Activity 2: IOT

Lecture Activity 2: IOT

University

40 Qs

Berpikir komputasi dan pemograman

Berpikir komputasi dan pemograman

11th Grade - University

40 Qs

Preliminary Examination - OOP

Preliminary Examination - OOP

University

40 Qs

7-20

7-20

7th Grade - University

38 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

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?