5.Variables

5.Variables

Professional Development

40 Qs

quiz-placeholder

Similar activities

English for the Workplace Final Test 2/66

English for the Workplace Final Test 2/66

Professional Development

40 Qs

REVISION - SPORT

REVISION - SPORT

5th Grade - Professional Development

45 Qs

Review GRADE 8

Review GRADE 8

6th Grade - Professional Development

39 Qs

Đề 9

Đề 9

1st Grade - Professional Development

40 Qs

English Tenses

English Tenses

Professional Development

40 Qs

Toeic Extra Practice Units 1-5

Toeic Extra Practice Units 1-5

Professional Development

37 Qs

Trivia Time

Trivia Time

Professional Development

36 Qs

ภาษาอังกฤษฟัง-พูด (เอมพันธ์)

ภาษาอังกฤษฟัง-พูด (เอมพันธ์)

Professional Development

40 Qs

5.Variables

5.Variables

Assessment

Quiz

English

Professional Development

Practice Problem

Hard

Created by

ANIL KUMAR

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are the four types of variables in Java?

String, int, double, char
String, int, float, boolean
String, char, float, boolean
String, int, float, char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to change the value of a variable in Java?

==
!=
<=
=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about a local static instance variable in Java?

It can only be declared within a method
It can be declared as both local and static variable
It can only be used within a single instance of a class
Memory allocation for static variables occurs every time the method is called

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the steps to declare a variable in Java?

Specify the variable's name, provide a value, and end the line with a semicolon
Provide a name for the variable, end the line with a colon, and specify the variable's data type
Specify the variable's data type, provide a name for the variable, and end the line with a semicolon
Specify the variable's value, provide a data type, and end the line with a semicolon

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes the Java data types?

Binary and hexadecimal
Primitive and non-primitive
Integers and floating-point
Functions and procedures

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we change the value of a variable in Java?

Using the DEBUG command
Using the EVAL command with assignment
Using the PRINT command with assignment
Using the VAR command with assignment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change a value in a string in C++?

Double quotes
Single quotes
Index position or number
replace() function

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?