Day 4 – Advanced Class Features

Day 4 – Advanced Class Features

Professional Development

20 Qs

quiz-placeholder

Similar activities

C# Interfaces

C# Interfaces

Professional Development

16 Qs

Quiz z Struktur Danych (C++)

Quiz z Struktur Danych (C++)

Professional Development

16 Qs

Czechitas C# 2

Czechitas C# 2

Professional Development

16 Qs

C

C

Professional Development

20 Qs

interfaces, final , inheritance

interfaces, final , inheritance

Professional Development

20 Qs

safety in ict

safety in ict

Professional Development

23 Qs

Refresh your basics - MISRA 2012

Refresh your basics - MISRA 2012

Professional Development

20 Qs

Module 3: Static Testing

Module 3: Static Testing

Professional Development

20 Qs

Day 4 – Advanced Class Features

Day 4 – Advanced Class Features

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ZIZIE VANESSA

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is an advanced class feature?

Inner Classes

Reflection

Interfaces

Abstract Classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are Inner classes?

classes that can't be instantiated and are meant to be subclassed

 classes defined within another class

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Explain reflection

are a special type of class that represent a fixed set of constants

 a form of metadata that can be added to your Java code

 allows you to inspect and manipulate classes, interfaces, fields, and methods at runtime

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How lamda expression are used?

used to provide additional information to the compiler, to other developers, or to runtime tools.

 used to define anonymous functions that can be passed as arguments to methods.

to write code that's reusable and more robust.

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

choose the correct way to declare static

static initializer :

static { counter = 0; }

static variable :

static int counter;

static method :

static { counter = 0; }

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How does static variable is declared?

static int counter;

int static counter;

int counter static;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to declare static method ?

 static void incrementCounter() { counter++; }

 void static incrementCounter() { counter++; }

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?