Basics of Programming in Java (CH.9)

Basics of Programming in Java (CH.9)

University

45 Qs

quiz-placeholder

Similar activities

KLL-PT : lab equipment invitro

KLL-PT : lab equipment invitro

University

47 Qs

Mandarin Middle Test 2020-2021

Mandarin Middle Test 2020-2021

University

41 Qs

Steam Properties

Steam Properties

University - Professional Development

50 Qs

ಕ್ವಿಜ್ ಸರಣಿ 82: ಡಾ|| ಬಿ. ಆರ್ ಅಂಬೇಡ್ಕರ್ ಜಯಂತಿ ವಿಶೇಷ ಕಾರ್ಯಕ್ರಮ

ಕ್ವಿಜ್ ಸರಣಿ 82: ಡಾ|| ಬಿ. ಆರ್ ಅಂಬೇಡ್ಕರ್ ಜಯಂತಿ ವಿಶೇಷ ಕಾರ್ಯಕ್ರಮ

University

41 Qs

English

English

University

50 Qs

Aptitude Test - 5 (26 jun 2021)

Aptitude Test - 5 (26 jun 2021)

University

45 Qs

JAMQUIZ '24 : 28.02.2024

JAMQUIZ '24 : 28.02.2024

University

50 Qs

Material Management

Material Management

University

40 Qs

Basics of Programming in Java (CH.9)

Basics of Programming in Java (CH.9)

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

J Gabe

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correctly written Java statement?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Examine the following code. What is missing on the ''if statement''?

  1. An ''end if'' statement

  1. Brackets/braces

  1. An ''else statement''

  1. A semicolon

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The compiler is giving an error on the following statement. Why?

  1. Missing brackets

  1. Missing semicolon

  1. Missing a value

  1. Missing a variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Java statement can be thought of as which one of the following?

  1. An expression

  1. A prompt

  1. An instruction

  1. A loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of statement is the following?

  1. Control

  1. Assignment

  1. Integer

  1. Void

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the return value declared in a method?

  1. By the data type alone after the method name

  1. By the data type alone before the method name

  1. By the data type and the variable name following the method name

  1. By the data type and variable names in parentheses

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT true about a method in Java?

  1. Java methods can have no parameters

  1. Java methods can return more than one value

  1. Java methods can have more than one parameter

  1. Java methods can return no values

Access all questions and much more by creating a free account

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

Already have an account?