Instruction
- Total number of questions : 5
- Time allotted : 07:30 Minutes:Seconds.
- Each question carry 1 mark, no negative marks.
- DO NOT refresh the page.
- All the best
Object Oriented Programming [ Question No: 1 To 5 ] :
Which of the following is/are feature(s) of inheritance in OOPs?
Features:
i) Sub Class
ii) Super Class
iii) Reusability
iv) Operator Overloading
Which of the following languages are object-oriented programming languages? Languages: i) LISP ii) Java iii) C++ iv) Simula v) SQL vi) C
Which of the following languages is a non .NET language?
Which of the given options best describes the truthfulness of the following statements?
i) VB.NET is an object-oriented programming language implemented in the .NET Framework.
ii) VB.NET is subset of Visual basic 6.0.
iii) .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
A/An ______ is a user-defined datatype which has data members and member functions.
Total number of questions : 5
Number of answered questions : 0
Number of unanswered questions : 5
Object Oriented Programming [ Question No: 1 To 5 ] :
Which of the following is/are feature(s) of inheritance in OOPs?
Features:
i) Sub Class
ii) Super Class
iii) Reusability
iv) Operator Overloading
Your Answer : (Not Answered)
Correct Answer : D
The features of inheritance are the sub class, the super class and reusability, so i, ii and iii only. A sub class inherits from a super class and so reuses its code. Operator overloading is a kind of polymorphism, in which an operator is given more than one meaning, and not a feature of inheritance, so iv is wrong, and the options with fewer items are incomplete. Inheritance lets the sub class take the data and methods of the super class and add its own, so code is written once and reused.
Which of the following languages are object-oriented programming languages? Languages: i) LISP ii) Java iii) C++ iv) Simula v) SQL vi) C
Your Answer : (Not Answered)
Correct Answer : A
The keyed answer is i, ii, iii and iv only: LISP, Java, C++ and Simula. Java, C++ and Simula are object-oriented languages, and Simula is regarded as the first. LISP is a multi-paradigm language that has object-oriented features through its object system (CLOS), and the key counts it. SQL is a database query language and C is a procedural language, so v and vi are not object-oriented. Many textbooks would leave out LISP, but the official key includes it.
Which of the following languages is a non .NET language?
Your Answer : (Not Answered)
Correct Answer : D
Pascal is the non-.NET language among the options. C#, F# and J# are languages designed to run on the .NET platform, compiling to the common intermediate language that the .NET runtime executes. Pascal is the older language not designed for it. Pascal is a procedural language developed in the early 1970s, while the .NET family consists of languages such as C#, F# and Visual Basic that are compiled for the common language runtime.
Which of the given options best describes the truthfulness of the following statements?
i) VB.NET is an object-oriented programming language implemented in the .NET Framework.
ii) VB.NET is subset of Visual basic 6.0.
iii) .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Your Answer : (Not Answered)
Correct Answer : C
Statements i and iii are true and ii is false. VB.NET is an object-oriented language implemented on the .NET Framework, and .NET is a free, cross-platform, open-source developer platform for building many kinds of applications. VB.NET is not a subset of Visual Basic 6.0: it is a later language built on .NET and rewritten in an object-oriented way, so VB6 programs do not run as VB.NET without changes. The options that mark ii as true or i as false are wrong.
A/An ______ is a user-defined datatype which has data members and member functions.
Your Answer : (Not Answered)
Correct Answer : A
A class is a user-defined data type that holds data members and member functions. An object is an instance of a class, created from it, not the type itself. A package is a way of grouping related classes in languages such as Java, and a method is a single function inside a class. Only the class fits the definition. In Java and C++ the keyword class is used to define such a type, and objects are then created from it.
Marks
Total number of questions : 5
Number of answered questions : 0
Number of unanswered questions : 5