C++ and Java Quiz

C++ and Java Quiz

University

10 Qs

quiz-placeholder

Similar activities

Pengantar Coding

Pengantar Coding

University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

CSE_Chap1

CSE_Chap1

University

10 Qs

Herencia y Paquetes

Herencia y Paquetes

University

10 Qs

Linkedlist

Linkedlist

University

10 Qs

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

CIT 111 Theory Lecture Quiz

CIT 111 Theory Lecture Quiz

University

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