3i Infotech Placement: Sample Questions 1073 - 1074 of 1245
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 1073
Explanation
- The scope operator can be used to refer to members of the global namespace.
- Because the global namespace doesn՚t have a name, the notation:: member-name refers to a member of the global namespace.
- Useful for referring global namespace members whose names are hidden by names declared in nested local scope.
- Unless we specify to the compiler in which namespace to search for a declaration, the compiler simple searches the current scope, and any scopes in which the current scope is nested, to find the declaration for the name.
Question 1074
Question MCQ▾
A square is inscribed in a circle of area 18pi. What is the length of a side of the square?
Choices
Choice (4) | |
---|---|
a. | 3 |
b. | 6 |
c. | 3 |
d. | 6 |
Answer
d.Explanation
A square is inscribed in a circle of area 18pi.
Area of circle =
So, diagonal of square will be
We are asked to find the length of the square. Let it be x.
As all the angles of square are right angles we can find the side using Pythagoras theorem,
So, length of side of square will be 6 unit.