BSAIT 1-2 QUIZ

BSAIT 1-2 QUIZ

Professional Development

20 Qs

quiz-placeholder

Similar activities

Day 3 - Dom Manipulation

Day 3 - Dom Manipulation

Professional Development

20 Qs

C++ Operators

C++ Operators

Professional Development

20 Qs

Core Java - 1

Core Java - 1

Professional Development

15 Qs

HACKATHON HUSTLE(ROUND 2)

HACKATHON HUSTLE(ROUND 2)

Professional Development

20 Qs

core java 2

core java 2

Professional Development

25 Qs

SYP Chapter 1 & 2

SYP Chapter 1 & 2

Professional Development

20 Qs

Quiz for Module3

Quiz for Module3

Professional Development

20 Qs

OCP 1Z0-819 - Chapter3

OCP 1Z0-819 - Chapter3

Professional Development

20 Qs

BSAIT 1-2 QUIZ

BSAIT 1-2 QUIZ

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Erickson Antonio

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Java?

A constant value

A named memory location that can store a value

A method to execute code

A type of data structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a named constant in Java?

static

final

const

immutable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the main() method signify in a Java program?

The end of the program

The starting point for execution

A method for input

A method for output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a primitive data type in Java?

String

Array

int

List

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to start a single-line comment in Java?

/* */

//

#

//* *//

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid way to declare a variable in Java?

int a = 5;

float b = 2.5f;

char c = 'A';

string d = "Hello";

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types can hold decimal values?

int

char

float

boolean

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?