BroCode Round 1

BroCode Round 1

University

20 Qs

quiz-placeholder

Similar activities

C Language Quiz-1

C Language Quiz-1

University - Professional Development

15 Qs

Trắc nghiệm lập trình C/C++ cơ bản

Trắc nghiệm lập trình C/C++ cơ bản

University

16 Qs

Arrays and pointers quiz

Arrays and pointers quiz

University

20 Qs

Zenorix 2023

Zenorix 2023

University

20 Qs

Java Method

Java Method

University

15 Qs

Informatika

Informatika

University

15 Qs

CP-String

CP-String

University

18 Qs

Programming in C and Data Structures - Unit I - Test1

Programming in C and Data Structures - Unit I - Test1

University

20 Qs

BroCode Round 1

BroCode Round 1

Assessment

Quiz

Computers

University

Medium

Created by

Shravan Kale

Used 11+ times

FREE Resource

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

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?