Search Header Logo

PT-5 Pre Test

Authored by Mark Feguro

Information Technology (IT)

University

Used 5+ times

PT-5 Pre Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_______ are whole numbers that can have both zero, positive and negative values but no decimal values. For example, 0, -5, 10.

decimal
fraction

integers

rational

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ and ______ are used to hold real numbers.

int and char
float and double
byte and short
string and boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ______ literal is a sequence of characters enclosed in double-quote marks.

string
boolean
integer
character

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

single line comment starts with ______ symbol. It starts and ends in the same line.

__
/*

##

//

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To write multi-line comments, we use the _____

/* */

// ... //
# ... #

#**#

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is a programming paradigm that uses 'objects' to design applications.

Functional Programming
Declarative Programming
Procedural Programming
Object-Oriented Programming (OOP)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the four Principles of Object-Oriented Programming (OOP).

Abstraction, Encapsulation, Reflection, Composition
Inheritance, Overloading, Delegation, Composition
Encapsulation, Inheritance, Polymorphism, Abstraction
Composition, Aggregation, Serialization, Modularity

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?