Mid Term Test in Computer Programming

Mid Term Test in Computer Programming

University

40 Qs

quiz-placeholder

Similar activities

8 класс цикл

8 класс цикл

8th Grade - University

37 Qs

Application Development and Emerging Technologies

Application Development and Emerging Technologies

University

43 Qs

Arduino

Arduino

10th Grade - University

35 Qs

JABA!

JABA!

University

41 Qs

2nd Year Data Structures Quiz Qn

2nd Year Data Structures Quiz Qn

University

35 Qs

Usability Engineering Quiz

Usability Engineering Quiz

University

40 Qs

MGMT 2080 - Exam 2

MGMT 2080 - Exam 2

University

43 Qs

Quiz sur Apollo GraphQL

Quiz sur Apollo GraphQL

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
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 Information Technology (IT)