ICT3_FT_W3-4_SW2_Class_and_Modifiers

ICT3_FT_W3-4_SW2_Class_and_Modifiers

11th Grade

10 Qs

quiz-placeholder

Similar activities

ICT G7 Chapter 2.2 Direct Data Entry Devices

ICT G7 Chapter 2.2 Direct Data Entry Devices

7th Grade - University

15 Qs

Online Privacy Awareness Quiz

Online Privacy Awareness Quiz

7th Grade - University

13 Qs

Net+ 1.3.7 Binary and Hexadecimal

Net+ 1.3.7 Binary and Hexadecimal

11th Grade

12 Qs

Untitled Quiz

Untitled Quiz

7th Grade - University

11 Qs

2.4 Layer 2 Devices

2.4 Layer 2 Devices

9th - 12th Grade

12 Qs

Keyboard Shortcuts

Keyboard Shortcuts

5th Grade - University

11 Qs

P6 phising

P6 phising

6th Grade - University

10 Qs

Career Alignment for Drone Technology

Career Alignment for Drone Technology

10th Grade - University

15 Qs

ICT3_FT_W3-4_SW2_Class_and_Modifiers

ICT3_FT_W3-4_SW2_Class_and_Modifiers

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Medium

Created by

JB Presa

Used 2+ 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

30 sec • 1 pt

Which of the following method names follows proper camel case naming conventions?

add_numbers()

AddNumbers()

addNumbers()

ADD_NUMBERS()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to call a method with parameters?

MethodName();

MethodName(10, 20);

MethodName[];

Call.MethodName();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a return statement in a method?

It specifies the data type of the method

It stops the execution of the program

It passes a value back to the caller

It makes a method static

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about static variables?

They belong to the class itself

They belong to an instance of a class

They are initialized every time a new object is created

They can be declared inside methods

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a static method?

It belongs to an instance of a class

It cannot be called

It requires parameters

It belongs to the class itself

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you try to instantiate a static class?

It will throw an error

It will compile successfully

It will create an instance of the class

It will create multiple objects

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a method is declared as internal, where can it be accessed?

Only inside the class

Only inside the namespace

Anywhere in the project

Only in derived classes

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?