Midterm Exam - CTCC0323

Midterm Exam - CTCC0323

University

33 Qs

quiz-placeholder

Similar activities

Code war

Code war

University

30 Qs

Gmetrix Python

Gmetrix Python

9th Grade - Professional Development

31 Qs

blitz

blitz

University

30 Qs

Final Exam - BECC0302

Final Exam - BECC0302

University

35 Qs

java collections

java collections

University

31 Qs

function in Python

function in Python

University

37 Qs

Python Function

Python Function

University

30 Qs

CRYPTERA 2k21

CRYPTERA 2k21

University

30 Qs

Midterm Exam - CTCC0323

Midterm Exam - CTCC0323

Assessment

Quiz

Computers

University

Hard

Created by

THOMAS SANCHEZ

Used 8+ times

FREE Resource

33 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 3 pts

What is the full name of your instructor for CTCC0323?

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

A type of parameter which is defined in the method’s signature and used within the method.

formal parameter

actual parameter

signature parameter

real parameter

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the purpose of the void keyword in declaring methods?

to not return any values

to return specific data types

to return specific values

to return all data types

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

The _____ keyword is a non-access modifier used for methods, which can help access methods without creating an object of a class.

static

void

public

console

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Consider the following method signatures: void printMessage(String message) and void printMessage(int num). Can they properly function? Why?

Yes, they will properly work because of method overloading.

Yes, they will properly work because of method overriding.

No, because they have different parameters.

No, because they don’t have any code blocks.

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

Based on the given code snippet. The class Dog can make use of the method sleep from the class Cat. True or False?

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

Based on the given code snippet. Will the method work? Why or why not?

The method will work since it has a print function.

The method will work since it has no parameters.

The method will not work since it has a print function.

The method will not work since it has parameters.

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?