5.Variables

5.Variables

Professional Development

40 Qs

quiz-placeholder

Similar activities

Cohesive devices IELTS Writing Task 2

Cohesive devices IELTS Writing Task 2

University - Professional Development

35 Qs

HVTC C1 - 2

HVTC C1 - 2

KG - Professional Development

37 Qs

Greenwood Connectors

Greenwood Connectors

Professional Development

35 Qs

BAHASA INGGRIS KELAS IX

BAHASA INGGRIS KELAS IX

12th Grade - Professional Development

40 Qs

Topics 6,7,8

Topics 6,7,8

Professional Development

43 Qs

1. Installing Java SDK and Eclipse IDE

1. Installing Java SDK and Eclipse IDE

Professional Development

35 Qs

12.Memory Allocation + java

12.Memory Allocation + java

Professional Development

36 Qs

4.JUnit Introduction

4.JUnit Introduction

Professional Development

45 Qs

5.Variables

5.Variables

Assessment

Quiz

English

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

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

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?