c++ MCQS

c++ MCQS

University

20 Qs

quiz-placeholder

Similar activities

PROGRAMMING IN C AND DATA STRUCTURES - UNIT II

PROGRAMMING IN C AND DATA STRUCTURES - UNIT II

University

20 Qs

Python Loops

Python Loops

University

17 Qs

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

Quiz on Air Pool 1 SH

Quiz on Air Pool 1 SH

University

21 Qs

Vue.js Basics

Vue.js Basics

University

20 Qs

C++Arrays Loops and Functions Review

C++Arrays Loops and Functions Review

University

15 Qs

C Quest 2.0

C Quest 2.0

University

20 Qs

Midterm Exam

Midterm Exam

University

17 Qs

c++ MCQS

c++ MCQS

Assessment

Quiz

Computers

University

Medium

Created by

محمد المصري

Used 9+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

........... groups a number of program statements into a unit and give it a name.

A System software

A Software

A Function

A Block

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following can legitimately be passed to a function?

A constant

A variable

A structure

A header file

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function argument is...........

a variable in the function that receives a value from the calling program.

a way that functions resist accepting the calling program’s values.

a value sent to the function by the calling program.

a value returned by the function to the calling program

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function’s single most important role is to..........

give a name to a block of code.

reduce program size.

accept arguments and provide a return value.

help organize a program into conceptual units.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function itself is called the function d...........

declaration

definition

decision

deformation

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can we use arguments passed by reference ..........

ampersand sign (&).

a backslash (\)

slash (/)

(*)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The scope of variables declared within a function or any other inner block is only their own function or their own block and cannot be used outside of them.

True

False

I don't know

None of them

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?