Object Oriented Programming MCQ Questions and Answers Pdf - 2
Question: 6
_____ of variables declared within a function is extended to the function block and all sub blocks therein.
(A) Class scope
(B) File scope
(C) Local scope
(D) Function scope
Ans: D
Function scope
Question: 7
_____ functions copies source to target string.
(A) Stcp ()
(B) Scpy ()
(C) Str ()
(D) Strcpy ()
Ans: D
Strcpy ()
Question: 8
_____ function returns the number of character stored in the array.
(A) Strlength ()
(B) Stlen ()
(C) Str ()
(D) Strlen ()
Ans: D
Strlen ()
Question: 9
Which of the following is NOT true, related to functions?
(A) The default value for an argument can be given in between the argument list.
(B) The default value in the formal parameters can be given in the form of variable initialization.
(C) The actual parameters can be passed only as variables to formal parameters of reference type.
(D) The actual parameters can be passed in the form of constants to the formal parameters of value type.
Ans: A
The default value for an argument can be given in between the argument list.
Question: 10
_____ are user defined named entities of memory locations that can store data.
(A) Char
(B) Data
(C) Constant
(D) Variables
Ans: D
Variables
- Top 1000 C++ Quiz
- Object Oriented Programming MCQ Questions and Answers Pdf
- Top 100+ Object Oriented Programming Quiz Questions & Answers
- Top 100+ Object Oriented Programming Online Test
- Object Oriented Programming Objective Questions and Answer Pdf
- Top 1000+ Computer Knowledge Questions and Answers for Competitive Exams
Samacheer Kalvi Class 10 Science Acoustics Questions & Answers More
Agricultural Engineering Multiple Choice Questions and Answers Pdf More
Soil, Water Conservation Engineering, Hydrology, Surveying MCQ Questions More
Irrigation and Drainage Engineering, Wells & Pumps MCQ Questions Pdf More
Agricultural Engineering Farm Power MCQ Questions and Answers More
British Rule in India General Knowledge Questions and Answers More
Top 100+ Famous English Poets and Authors Pdf More
7000+ World Geography MCQ Questions and Answers 2024 - 2025 Pdf More
Digital Electronics MCQ with Answers PDF More
1000+ Hydraulic Machines MCQ Questions and Answers Pdf More