Basic Operators and Operator Precedence

Basic Operators and Operator Precedence

Professional Development

20 Qs

quiz-placeholder

Similar activities

CPA JYSS 2018 Prelims Paper 1

CPA JYSS 2018 Prelims Paper 1

7th Grade - Professional Development

20 Qs

Manejo de sistemas Operativos <TERCER PARCIAL>  Unidad 4 a 6

Manejo de sistemas Operativos <TERCER PARCIAL> Unidad 4 a 6

Professional Development

17 Qs

UJIAN SEMESTER II :  KKPI (TAHUN 2019-2020)

UJIAN SEMESTER II : KKPI (TAHUN 2019-2020)

Professional Development

20 Qs

QUIZ

QUIZ

Professional Development

15 Qs

Révision HTML, CSS et JavaScript

Révision HTML, CSS et JavaScript

Professional Development

20 Qs

Mobile CSP Unit 4 Test Prep

Mobile CSP Unit 4 Test Prep

KG - Professional Development

17 Qs

Pagemaker Quiz1

Pagemaker Quiz1

Professional Development

20 Qs

Enriching learning through ICT (MST-2)

Enriching learning through ICT (MST-2)

Professional Development

17 Qs

Basic Operators and Operator Precedence

Basic Operators and Operator Precedence

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Alfred Brian Bautista

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the purpose of the Scanner class in Java?

To create graphical user interfaces

To read data from the standard input device

To manage memory allocation

To write data to files

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which statement is used to import the Scanner class?

import Scanner;

import java.Scanner;

import java.util.*;

import java.util.Scanner;

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What does the following statement do? Scanner input = new Scanner(System.in);

Declares a variable of type Scanner

Creates a new input stream

Creates a Scanner object associated with the keyboard

Imports the Scanner class

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which method retrieves input as a double?

nextFloat()

nextInt()

nextDouble()

nextLine()

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What does the next() method return?

The next complete token as a String

The next line of data

A double value

A short value

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

How do you retrieve a single character from the keyboard?

Use nextLine()

Use next().charAt(1)

Use nextChar()

Use next() and charAt(0)

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What does the print() method do?

Formats output

Reads input from the user

Displays output and moves to a new line

Displays output without moving to a new line

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?