Programming Languages - Computer Questions and Answers


Attempt Mode

Computer » Programming Languages

Which of the following enables an object , variable or a method in OOPs to take multiple forms?

A

Inheritance

B

Polymorphism

C

Encapsulation

D

Abstraction

Solution

Polymorphism : It is a OOPs concept that is refers the ability of an object/variable/method  to take multiple forms.

Example: "Animal" class has different sub-classes like horse, fish, tiger etc. "Animal" class has one method called "Move" which will be defined in different ways in subclasses.

Like when for "horse" class it will be as "trotting" while for "Fish" class it will be "Swimming".

Inheritance : It refers to the ability of subclass to inherit features of the parent class. It leads to helps re-usability of code.

Encapsulation : It refers to binding of methods/variables/objects of one class together.

Abstraction : It refers to the hiding of the data.

Generalization : It refers to grouping of subclasses into one class. Like Permanent faculty and Guest

Computer » Programming Languages

What is the base of Octal system of coding?

A

5

B

8

C

10

D

16

Solution

In Octal coding system a value is represented by 3 bits which in general represents the decimal value from 0 to 7 with each digit having a weight or value of just 8 starting from the least significant bit (LSB).It has hence base of 8.

Computer » Programming Languages

Which of the following is considered as first high level programming language?

A

FORTRAN

B

PROLOG

C

BASIC

D

LOGO

Solution
  • FORTRAN is a short form of ‘Formula Translation’.

  • It is considered to be the first high level language, which is used by scientists and engineers to easily solve mathematical formulas and to do complex scientific calculations.

  • FORTRANwas developed by John Backus (IBM) in 1957.

    FORTRAN 'फॉर्मूला ट्रांसलेशन का संक्षिप्त रूप है।

    यह पहली उच्च स्तरीय भाषा के रूप में जानी जाती है, जिसका उपयोग वैज्ञानिकों और इंजीनियरों द्वारा गणितीय सूत्रों को आसानी से हल करने और जटिल वैज्ञानिक गणना करने के लिए किया जाता है।

    FORTRAN को 1957 में जॉन बैकस (IBM) द्वारा विकसित किया गया था।

Computer » Programming Languages

In programming repeating some statements is usually called

A

Compiling

B

Structure

C

Looping

D

Control structure

Computer » Programming Languages

In HTML tags consists of keywords enclosed within

A

angular brackets

B

parentheses

C

square brackets

D

flower brackets

Computer » Programming Languages

A computer programming language often used by children is

A

LOGO

B

PILOT

C

BASIC

D

JAVA

Computer » Programming Languages

A bug in a programme is a

A

Statement

B

Error

C

Signature

D

both

Computer » Programming Languages

A bug in a programme is a an

A

Statement

B

Error

C

Syntax

D

Both

Computer » Programming Languages

In C language the formatting character should be preceded by the symbol :

A

+

B

/

C

%

D

-

Computer » Programming Languages

The NOSHADE attribute in HTML

A

defines the thickness of the line

B

displays the line in red

C

displays the line in dark grey

D

displays the example in red

Computer » Programming Languages

In HTML B and B tags display the enclosed tend in

A

black colour

B

background

C

bold

D

bright

Computer » Programming Languages

The basic application of an AND gate in computers is for :

A

addition

B

subtraction

C

multiplication

D

division