C++ and Java Quiz

C++ and Java Quiz

University

10 Qs

quiz-placeholder

Similar activities

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Javascript

Javascript

University

12 Qs

The AI Shield

The AI Shield

University

15 Qs

Programación II Parte 5

Programación II Parte 5

University

10 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

Què has après sobre el web ?

Què has après sobre el web ?

University

10 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

C++ and Java Quiz

C++ and Java Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Tokir Khan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of a boolean variable in Java?

True

False

0

1

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is not a Java access modifier?

Private

Protected

Final

Public

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does a switch statement do?

Creates a loop

Define a class

Allows multiple selection options

Handles memory allocation

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How is an array declared in C++?

int array;

int array[];

int array[10];

array int[10];

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does public static void main(String[] args) represent in Java?

The main method of the program

A comment

An input command

A class defination

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is JVM in Java?

Java virtual memory

Java Variable Method

Java virtual machine

Java Variable Memory

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which loop checks the condition at the end in C++?

For

While

Do while

If

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?