BSAIT 1-2 QUIZ

BSAIT 1-2 QUIZ

Professional Development

20 Qs

quiz-placeholder

Similar activities

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 Qs

Day 4 - Advanced Topics

Day 4 - Advanced Topics

Professional Development

20 Qs

Servlets

Servlets

Professional Development

20 Qs

SQL Statements and Queries

SQL Statements and Queries

Professional Development

15 Qs

DATA TYPES ,INPUT AND OUTPUT

DATA TYPES ,INPUT AND OUTPUT

Professional Development

25 Qs

C Operators

C Operators

University - Professional Development

15 Qs

day5

day5

Professional Development

21 Qs

classes & static keyword

classes & static keyword

Professional Development

22 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?