Search Header Logo

C++ Quiz on C++ Library Functions

Authored by Bryan Cajurao

Other

University

Used 4+ times

C++ Quiz on C++ Library Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

What does the header file contain?

Function prototypes for stream manipulators

Function prototypes for math library functions

Function prototypes for the C-style standard input/output library functions

Function prototypes for C-style string-processing functions

2.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which function is used to convert a character to an uppercase letter?

toupper(c)

isalpha(c)

isupper(c)

tolower(c)

3.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

What is the purpose of the header file?

Contains function prototypes for C-style string-processing functions

Contains classes for accessing data in containers

Contains function prototypes for math library functions

Contains classes for runtime type identification

4.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which function returns the absolute value of a real number?

pow(x, y)

sqrt(x)

abs(x)

fabs(x)

5.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

What is the purpose of the header file?

Contains function prototypes for functions that perform input from files on disk and output to files on disk

Contains function prototypes for conversions of numbers to text

Contains function prototypes for math library functions

Contains function prototypes for the C-style standard input/output library functions

6.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which function is used to determine if a character is a digit?

isupper(c)

isalpha(c)

islower(c)

isdigit(c)

7.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

What is the purpose of the header file?

Contains classes and functions used by the C++ Standard Library to allocate memory

Contains classes for runtime type identification

Contains classes and functions normally used by stream processing to process data in the natural form for different languages

Contains classes for defining the numerical data type limits on each computer platform

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?