Search Header Logo

SUMMATIVE TEST IN COMPUTER PROGRAMMING - 2nd Qtr-1-23-2023

Authored by Rhoychie Roy

Computers

12th Grade

Used 1+ times

SUMMATIVE TEST IN COMPUTER PROGRAMMING - 2nd Qtr-1-23-2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The more commonly known C-style format strings, used by the printf, and Java’s String.format.

BCPL (Basic Computer Programming Language)

BCPL (Binary Combined Programming Language)

BCPL (Binary Computer Programming Language)

BCPL (Basic Combined Programming Language)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Returns the formatted string by given locale, format and arguments.

Locale.getDefault() method

string format() method

sprintf() function

printf() method

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Decimal number, possibly in scientific notation depending on the precision and value.

% d  

% f  

% g

% e

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Returns Hex output of floating point number.

% x

% n

% h

% a

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Keyword which is used to create a custom error.

Throw

Throws

Exception type

Custom method

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Used in the signature of method to indicate that this method might throw one of the listed type exceptions.

Throw

Throws

Try-catch block

Multiple exceptions

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Indicated what exception type may be thrown by a method.

ClassNotFoundException

Throw

ArithmeticException

Throws

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?