Code Combat

Code Combat

University

15 Qs

quiz-placeholder

Similar activities

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Java Post Hurricane D Check

Java Post Hurricane D Check

University

15 Qs

Java Programming

Java Programming

University

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

Basic Java Quiz

Basic Java Quiz

University

15 Qs

Java March

Java March

KG - University

16 Qs

Lets explore Java

Lets explore Java

University

14 Qs

Code Combat

Code Combat

Assessment

Quiz

Computers

University

Hard

Created by

Necg club

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a valid data type in java?

int

float

bolean

real

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following loops is guaranteed to execute at least once?

for

while

do-while

if-else

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the code?

print(type(5/2))

int

float

str

None Type

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to create a constant in c?

#define

const

Both are correct

No option is correct

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following keywords is used to inherit a class in Java?

  • implements

  • extends

  • inherits

  • derives

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data types is mutable in Python?

  • tuple

  • string

  • list

  • int

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following C code?

5

4

6

  • Compiler Error

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?