Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

The members that are accessible from within the class and are also available to its subclasses is called ………(a) Public members (b) Protected members(c) Secured members(d) Private members

Answer» (b) Protected members
2.

Which of the following members of a class can be handled only from within the class?(a) Public members(b) Protected members(c) Secured members(d) Private members

Answer»

(d) Private members

3.

What is a scope?

Answer»

Scope refers to the visibility of variables, parameters and functions in one part of a program to another part of the same program.

4.

Which members are accessible from outside the class?(a) Public members(b) Protected members(c) Secured members(d) Private members

Answer»

(a) Public members

5.

Which of the following security technique that regulates who canuse resources in a computing environment?(a) Password(b) Authentication (c) Access control(d) Certification

Answer»

(c) Access contro

6.

The process of subdividing a computer program into separate sub – programs is called …….(a) Procedural Programming(b) Modular programming(c) Event Driven Programming(d) Object oriented Programming

Answer»

(b) Modular programming

7.

Which of the following is used in programming languages to map the variable and object?(a) ::(b) : =(c) =(d) = =

Answer»

=  is used in programming languages to map the variable and object

8.

……… also defines the order in which variables have to be mapped to the object in order to obtain the value.(a) Scope (b) Local (c) Event(d) Object

Answer»

Scope also defines the order in which variables have to be mapped to the object in order to obtain the value.

9.

Write any five benefits in using modular programming?

Answer»

The benefits of using modular programming include:

1. Less code to be written.

2. A single procedure can be developed for reuse, eliminating the need to retype the code many times.

3. Programs can be designed more easily because a small team deals with only a small part of the entire code.

4. Modular programming allows many programmers to collaborate on the same application.

5. The code is stored across multiple files.

6. Code is short, simple and easy to understand.

7. Errors can easily be identified, as they are localized to a subroutine or function.

8. The same code can be used in many applications.

9. The scoping of variables can easily be controlled.

10.

How Python represents the private and protected Access specifiers?

Answer»

Private members of a class are denied access from the outside of the class. They can be handled only within the class.

Protected members of a class are accessible from within the class and are also available to its subclasses. No other process is permitted access to it.

11.

The arrangement of private instance variables and public methods ensures the principle of ………(a) Security(b) Data encapsulation(c) Inheritance(d) Class

Answer»

(b) Data encapsulation

12.

Which is true about modular programming?(a) Single procedure can be reused(b) Single procedure cannot be reused

Answer»

(a) Single procedure can be reused

13.

Find the wrong statement from the following (a) Modules contains data and instructions(b) Modules can be included in a program(c) Modules cannot have processing logic(d) Modules can be separately combined

Answer»

(c) Modules cannot have processing logic

14.

Write the output for the pseudo code?1. x: = ‘outer x variable’2. display( ):3. x: = ‘inner x variable’4. print x5. display Q

Answer»

outer x variable

inner x variable

15.

Find the wrong statement from the following(a) Modules contains data and instructions(b) Modules can be included in a program(c) Modules cannot have processing logic(d) Modules can be separately combined

Answer»

(c) Modules cannot have processing logic

16.

Identify which is not a module?(a) Algorithm(b) Procedures(c) Subroutines(d) Functions

Answer»

(a) Algorithm

17.

Define life time?

Answer»

The duration for which a variable is alive is called its ‘life time’.

18.

When a compiler or interpreter search for a variable in a program, it first search and then search …… scope(a) L, E(b) EG(c) GB(d) BL

Answer»

When a compiler or interpreter search for a variable in a program, it first search and then search L, E scope

Previous Next