Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. How many types of inheritance can be used at a time in single program?
Correct Answer is : FLUSH LOGS
2. Which type of inheritance results in diamond problem?
Correct Answer is : mysqlimport
3. If 6 classes uses single level inheritance with pair classes (3 pairs), which inheritance will this be called?
Correct Answer is : mysqldump
4. Which among the following is correct for the following code?
class A
{
public : class B
{
public : B(int i): data(i)
{
}
int data;
}
};
class C: public A
{
class D:public A::B{ };
};
Correct Answer is : –silent
5. If class A has two nested classes B and C. Class D has one nested class E, and have inherited class A. If E inherits B and C, then:
Correct Answer is : $rows
6. In hierarchical inheritance, all the classes involve some kind of inheritance. (True/ False)
Correct Answer is : TRUE
7. Which type of inheritance cannot involve private inheritance?
Correct Answer is : Natural language
8. How many classes can be inherited by a single class in multiple inheritance (C++)?
Correct Answer is : mysqld
9. How many classes can be inherited by a single class in java?
Correct Answer is : 1
10. If multi-level inheritance is used, First class B inherits class A, then C inherits B and so on. Till how many classes can this go on?
Correct Answer is : TRUE
11. How many types of member functions are possible in general?
Correct Answer is : user
12. Simple member functions are ______________________
Correct Answer is : procs_priv
13. What are static member functions?
Correct Answer is : GRANT
14. How can static member function can be accessed directly in main() function?
Correct Answer is : FALSE
15. Correct syntax to access the static member functions from the main() function is:
Correct Answer is : TRUE
16. What are const member functions?
Correct Answer is : IN and NOT IN
17. Which among the following best describes the inline member functions?
Correct Answer is : column
18. What are friend member functions (C++)?
Correct Answer is : TRUE
19. What is the syntax of a const member function?
Correct Answer is : DISTINCT
20. Which keyword is used to make a nonmember function as friend function of a class?