C++ Functions Quiz Questions and Answers - 2
Question: 6
The return type of the function prototype float power (float,.int) is ___
(A) Int
(B) Float
(C) Double
(D) Char
Ans: B
Float
Question: 7
The lifetime of a ___ variable is the life time of a program.
(A) Global scope
(B) Local scope
(C) File scope
(D) Function scope
Ans; C
File scope
Question: 8
In call by value method, the flow of data is always from the ___ statement to the function definition.
(A) Call
(B) Return
(C) Function
(D) Go to
Ans: A
Call
Question: 9
A block of code begins and ends with ___
(A) {}
(B) []
(C) ()
(D) {]
Ans: A
{}
Question: 10
The scope of any variable used in the entire program is ___
(A) Class
(B) Function
(C) File
(D) Local
Ans: C
File
Related Questions
Recent Articles
ECE Interview Questions and Answers Pdf More
Control System Questions and Answers Pdf More
GATE Analog Electronics MCQ Questions and Answers More
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
May-05-2024
| Meritnotes
Control System Questions and Answers Pdf More
May-04-2024
| Meritnotes
GATE Analog Electronics MCQ Questions and Answers More
May-03-2024
| Meritnotes
Analog Electronics Questions Pdf Download with Answers More
May-02-2024
| Meritnotes
Engineering Materials Science MCQ Questions & Answers More
May-01-2024
| Meritnotes
Material Science MCQ Questions Pdf Download More
April-30-2024
| Meritnotes
Trending Posts
Dairy Technology MCQ Questions and Answers More
Computer Objective Questions with Answers More
TNPSC Group 1, 2, 2a, 4 Indian History Notes, Study Material Pdf More
1000+ Petroleum Refinery Engineering Questions and Answers Pdf More
Top 100+ Sentence Completion Questions for Bank Exams More
Verbal Reasoning Test with Answers and Explanations Pdf More
April-29-2024
| Meritnotes
Computer Objective Questions with Answers More
April-05-2020
| Meritnotes
TNPSC Group 1, 2, 2a, 4 Indian History Notes, Study Material Pdf More
August-28-2019
| Meritnotes
1000+ Petroleum Refinery Engineering Questions and Answers Pdf More
June-06-2022
| Meritnotes
Top 100+ Sentence Completion Questions for Bank Exams More
February-29-2020
| Meritnotes
Verbal Reasoning Test with Answers and Explanations Pdf More
August-23-2020
| Meritnotes