Search Header Logo

BroCode Round 1

Authored by Shravan Kale

Computers

University

Used 11+ times

BroCode Round 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Inheritance is the principle that

Classes with the same name must be derived from one another

Knowledge of a general category can be applied to more specific objects

C++ functions may be used only if they have logical predecessors

One function name may invoke different methods

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If you want to use a class to define objects in many different programs, you should define the class in a C++ _______ file

Header

Program

Source

Text

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You can use C++ as a procedural, as well as an object-oriented, language

True

False

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is false?

You enclose a function's statements in a set of braces

The function header is considered a C++ statement, so it must end in a semicolon

The keyword void tells the C++ compiler that the function does not return a value

A function can receive information that you send (pass) to it

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is an access specifier?

Particular

Shielded

Protected

Safe

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

When a program calls a function that has default parameters, if you omit an argument, you must ________

Not omit any other arguments

Omit all arguments

Omit all arguments to the right of that argument

Omit all arguments to the left of that argument

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If we pass an array as an argument to a function, what actually gets passed?

Value of elements in array

First element of the array

Base address of the array i.e., the address of the first element

Address of the last element of array

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?

Discover more resources for Computers