Q1. Which of the following method of class String is used to obtain length of String object in Java?
(A) length()
(B) Sizeof()
(C) lengthof()
(D) limitof()
Answer: length()
Explanation:
Q2. Which of the following keywords is used to refer to member of base class from a sub class in Java?
(A) super
(B) upper
(C) this
(D) minor
Answer: super
Explanation:
Q3. The standard C++ comment
(A) /
(B) //
(C) /* and */
(D)
Answer: //
Explanation:
Q4. Which of the following function that must contain in all C++ programs?
(A) main()
(B) system()
(C) start()
(D) end()
Answer: main()
Explanation:
Q5. Which keyword is used by method to refer to the object that invoked it?
(A) this
(B) catch
(C) abstract
(D) import
Answer: this
Explanation:
Q6. Which of the following access specifier can be used for a class so that its members can be accessed by a different class in the different package?
(A) Public
(B) Protected
(C) Private
(D) None of these
Answer: Public
Explanation:
Q7. Which one of the following is not a correct variable type in C++ programs?
(A) float
(B) int
(C) real
(D) double
Answer: real
Explanation:
Q8. In Java, a class member declared protected becomes member of subclass of which type?
(A) private member
(B) public member
(C) protected member
(D) static member
Answer: private member
Explanation:
Q9. In Java, which function is used to perform some action when the object is to be destroyed?
(A) delete()
(B) main()
(C) finalize()
(D) destroy()
Answer: finalize()
Explanation:
Q10. All computers execute
(A) BASIC programs
(B) C programs
(C) Machine language program
(D) FORTRAN programs
Answer: Machine language program
Explanation:
Related Multiple choice questions:
computer hardware objective questions and answers part1
computer hardware objective questions and answers part2
computer hardware objective questions and answers part3
computer hardware objective questions and answers part4
computer hardware objective questions and answers part5
computer networking objective questions and answers part1
computer networking objective questions and answers part2
computer networking objective questions and answers part3
computer networking objective questions and answers part4
computer networking objective questions and answers part5
computer programming objective questions and answers part1
computer programming objective questions and answers part2
computer programming objective questions and answers part3
computer programming objective questions and answers part4
computer programming objective questions and answers part5
basics of computer science objective questions and answers part1
basics of computer science objective questions and answers part2
basics of computer science objective questions and answers part3
basics of computer science objective questions and answers part4
basics of computer science objective questions and answers part5
basics of computer science objective questions and answers part6
basics of computer science objective questions and answers part7
basics of computer science objective questions and answers part8
basics of computer science objective questions and answers part9
basics of computer science objective questions and answers part10
basics of computer science objective questions and answers part11
basics of computer science objective questions and answers part12
basics of computer science objective questions and answers part13
basics of computer science objective questions and answers part14
basics of computer science objective questions and answers part15
basics of computer science objective questions and answers part16
basics of computer science objective questions and answers part17
Database management system multiple choice questions and answers part1
Database management system multiple choice questions and answers part2
Database management system multiple choice questions and answers part3
Database management system multiple choice questions and answers part4
Database management system multiple choice questions and answers part5
Operating system multiple choice questions and answers part1
Operating system multiple choice questions and answers part2
Operating system multiple choice questions and answers part3
MS Office multiple choice questions and answers part1
MS Office multiple choice questions and answers part2
MS Office multiple choice questions and answers part3
MS Office multiple choice questions and answers part4
MS Office multiple choice questions and answers part5
More Multiple choice questions:
Computer Science multiple choice questions and answers
Computer Science multiple choice questions and answers
Computer Science multiple choice questions and answers