CBSE - MCQ Question Banks (के. मा. शि. बो . -प्रश्नमाला )

PreviousNext

Q. 192301 The process in which an operator exhibits different behaviour in different instances is known as


A. operator overloading.

B. overriding.

C. virtual overloading.

D. polymorphism.

Right Answer is: A

SOLUTION

In operator overloading, a single function name can be used to handle different number and different types of arguments.


Q. 192302 The conventional programming languages such as COBOL, FORTRAN and C are examples of


A. modular programming.

B. procedural programming.

C. object based programming.

D. object-oriented programming.

Right Answer is: B

SOLUTION

In procedural programming, the problem is viewed as a sequence of things to be done such as reading, calculating and printing.


Q. 192303 COBOL and FORTRAN are examples of


A. low level language.

B. machine language.

C. assembly language.

D. high level language.

Right Answer is: D

SOLUTION

High level language use constructs for sequence, selection(decision) and iteration(looping).


Q. 192304 As complexity increases, architecture dominates the basic material. This statement was said by


A. John Ray.

B. Alan Kay.

C. Hug W Monk.

D. Ralph Johnson.

Right Answer is: B

SOLUTION

Alan Kay is one of the promoters of the object–oriented paradigm.


Q. 192305 The language which is more close to the programmer is


A. low level language.

B. machine language.

C. assembly language.

D. high level language.

Right Answer is: D

SOLUTION

HLLs are more close to the programmer, as these offer English like keywords and programming constructs (sequence, selection, iteration).


Q. 192306 Data structured programming is also called as


A. modular programming.

B. open structured programming.

C. Jackson structured programming.

D. event driven programming.

Right Answer is: C

SOLUTION

Data structured programming or Jackson structured programming is based on aligning data structures with program structures.


Q. 192307 The first programming language to be called object oriented is


A. C.

B. Ada.

C. C++.

D. Simula.

Right Answer is: D

SOLUTION

Ada is an object-based language. Simula(1967) is accepted as first object-oriented language.


Q. 192308 Structured programming is a subset of


A. modular programming.

B. procedural programming.

C. object based programming.

D. object-oriented programming.

Right Answer is: B

SOLUTION

Structured programming is a sub-discipline of procedural programming. It is famous for removing reliance on GOTO statements.


Q. 192309 The model in which the code is in files that are separated from the data is called


A. object based model.

B. object oriented model.

C. structural model.

D. data model.

Right Answer is: C

SOLUTION

At low level, structured programs are often composed of simple, hierarchical program flow structures.


Q. 192310 Java, C++ and Smalltalk are examples of


A. modular language.

B. procedural language.

C. structural language.

D. object-oriented language.

Right Answer is: D

SOLUTION

Object oriented programming is a type of programming in which the programmer defines the data types of a data structure and associated operations. To perform an object oriented programming, one needs an object oriented programming language (OOPL).


Q. 192311 Ada is an example of


A. object oriented language.

B. object based language.

C. procedural language.

D. structural language.

Right Answer is: B

SOLUTION

Languages that support classes but not polymorphism are object based languages.


Q. 192312 To implement the relationship in C++, we use


A. polymorphism.

B. inheritance.

C. overloading.

D. overriding.

Right Answer is: B

SOLUTION

The property by which one class (subclass) inherits the properties of super class is known as inheritance. This is a relationship between sub class (derived class) and super class (base class).


Q. 192313 The class which provides missing functionalities for its member functions, is called


A. base class.

B. concrete class.

C. abstract class.

D. super class.

Right Answer is: B

SOLUTION

Concrete class is the derived class that implements all the missing functionalities which are not implemented in the base class or abstract class.


Q. 192314 The software designing involves mainly two things


A. external documentation and internal documentation.

B. program documentation and explanatory comments.

C. program structure and program documentation.

D. prologues program documentation.

Right Answer is: C

SOLUTION

Program structure refers to how a program should be. The program structure is decided using top-down approach or any other popular approach. The program representation refers to its presentation style so that the program becomes more readable and presentable.


Q. 192315 Echo Printing


A. prints expressions without blank spaces.

B. handles exceptional data.

C. is recovering from an error.

D. is finding input in program.

Right Answer is: A

SOLUTION

Echo printing is printing of the input data, as they are read.


Q. 192316 Logical errors can be detected


A. by the compiler.

B. on seeing the result.

C. by the linker.

D. at time of binding.  

Right Answer is: B

SOLUTION

Sometimes, even if you don't encounter any error during compile-time and run-time, your program does not provide the correct result. This is because of the programmer's mistaken analysis of the problem he or she is trying to solve. Such errors are logical errors.


Q. 192317 When a run-time error stops the execution of the program, then the program is said to be


A. robust.

B. crashed.

C. complicated.

D. guarded.  

Right Answer is: B

SOLUTION

Errors that occur during the execution of a program are run-time errors. These are harder to detect errors. Some run-time errors stop the execution of the program which is then called program "crashed" or "abnormally terminated".


Q. 192318 An error is also called a


A. bug.

B. fault.

C. discrepancy.

D. mistake.
 

Right Answer is: A

SOLUTION

An error, sometimes called 'a bug', is anything in the code that prevents a program from compiling and running correctly.


Q. 192319 User friendly program refers to


A. friends of the user.

B. prompts user for action and helps user to select appropriate action.

C. programmer.

D. user.

Right Answer is: B

SOLUTION

A good program should be user friendly. The user should not be concerned about what is happening inside the program. The program should interact with user by understandable messages and user's work should be as low as possible. The users should only be responsible for providing the input data values and rest everything should the program's responsibility. The output provided by the program should also be easily understandable and presentable.


Q. 192320 The first stage in the program development process is


A. code the algorithm.

B. compile the program.

C. execute the program.

D. crack the problem.

Right Answer is: D

SOLUTION

A program is needed to transform input(s) into output(s). A program development process is a step by step process where each stage contributes to building of an effective and efficient program. There are four stages in the program development process as given below:
1. Crack the problem.
2. Code the algorithm.
3. Compile the program.
4. Execute the program.


Q. 192321 To make the statements clear and readable use


A. guard code.

B. prettyprinting.

C. guard code.

D. indentation.  

Right Answer is: D

SOLUTION

Comments play a very important role as they provide internal documentation of a program. Indentation makes the statements clear and readable. Sometimes, comments and indentation are not used to save on program writing time, but remember, there should not be any compromise on readability and understandability.


Q. 192322 The process of translating an algorithm into a program is called


A. cracking.

B. processing.

C. coding.

D. formatting.

Right Answer is: C

SOLUTION

When the algorithm is translated into a program (called source code) using some programming language, it is called coding. The coded program is then fed into the computer for further processing.


Q. 192323 If a program gets into infinite loop, it must provide some keys or key combinations to come out of it. This is called


A. prettyprinting.

B. formatting.

C. echo printing.

D. robustness.

Right Answer is: D

SOLUTION

The ability of a program, to recover following an error and to continue operating within its enviornment, is called robustness.


Q. 192324 The first step to problem solving methodology is to


A. analyze the problem.

B. deisgn programs.

C. code programs.

D. understand the problem well.

Right Answer is: D

SOLUTION

To create a new program or to improve an existing one, you must recognise that a problem or need for improvement does exit. Therefore, under this step you must understand the problem well so as to figure out "what is required or desired out of the proposed solution?" and hence to ascertain "what it is that is to be done?"


Q. 192325 The stages of program development process are :


A. prettyprinting, echo printing and fomatting.

B. crack the problem, code the alogorithm, compile the program and execute the program.

C. crack the problem, pretty printing, compile the program and execute the program.

D. crack the problem, echo printing, compile the program and execute the program.

Right Answer is: B

SOLUTION

There are four stages in the program development process as given below:
1. Crack the problem : In first stage, the problem is cracked and an algorithm is formulated which gives the solution for the problem.
2. Code the algorithm : In this stage, the algorithm is translated into a program using some programming language. This process is called coding. The coded program is then fed into the computer for further processing.
3. Compile the program : After feeding the program, next step is to compile it. Compilation is a process to convert the source code into the object code.
4. Execute the program : After compilation of an errorfree program, the program is executed. This phase is called run-time, the phase of program execution during which program instructions are carried out.


Q. 192326 Program maintenance refers to


A. inserting formatting style in the program.

B. inserting prologues in the program.

C. self documentation code.

D. modification of a program.

Right Answer is: D

SOLUTION

Program maintenance refers to the modification of a program after it has been completed, in order to meet changing requirements or to take care of errors that show up. There could be four kinds of maintenance: Corrective Maintenance, Adaptive Maintenance, Preventive Maintenance and Perfective Maintenance.


Q. 192327 Test and debug program means


A. finding and correcting errors.

B. counting the number of errors.

C. changing the formatting style.

D. finding the semantical errors.

Right Answer is: A

SOLUTION

Testing is the process of finding errors in a program and debugging is the process of correcting errors found during the testing process.


Q. 192328 The documenatation modules are generally referred to as


A. guides.

B. manuals.

C. structures.

D. coding.

Right Answer is: B

SOLUTION

Modules make information easily accessible to the specific user for which they were prepared and they reduce the costs of production and maintenance. The aggregation of modules and their deal would depend upon :
1. Complexity of system.
2. Technical specification of user
3. People involved in development and use
4. Expected life of documentation.


Q. 192329 Object code is


A. an algorithm.

B. a flowchart.

C. a pseudocode.

D. a code in the machine language.

Right Answer is: D

SOLUTION

During compilation, the source code i.e., the code ine the programming language is converted into the object code i.e., the code in machine language. For compilation, appropriate compiler is used which can translate the program written in a specific programming language.


Q. 192330 Prologue refers to


A. set of rules.

B. comments summarising the purpose of the program.

C. construction of statements.

D. printing of input data.

Right Answer is: B

SOLUTION

Prologues are the comments in the beginning of a program that summarises the purpose of the program.


Q. 192331 Comments and indentation


A. highlight syntax errors.

B. highlight semantic errors.

C. make the program readable and understandable.

D. make the program complex.

Right Answer is: C

SOLUTION

Comments play a very important role as they provide internal documentation of a program. Indentation makes the statements clear and readable. Sometimes, comments and indentation are not used to save on program writing time, but remember, there should not be any compromise on readability and understandability.


Q. 192332 Ability of a program to recover an error is


A. storage mapping.

B. job control instruction.

C. prettyprinting.

D. robustness.

Right Answer is: D

SOLUTION

Robustness is the ability to recover an error and continue operating within the environment.


Q. 192333 When your program does not provide the correct result, it is because of a


A. run-time error.

B. compile-time error.

C. logical error.

D. semantical error.

Right Answer is: D

SOLUTION

Logical errors arise because of the programmer's mistaken analysis of the problem he or she is trying to solve. Such errors are logical errors.


Q. 192334 Pretty printing means


A. correcting syntax to make program more readable.

B. formatting a program to make it readable.

C. avoiding blank lines.

D. avoiding blank spaces.

Right Answer is: B

SOLUTION

When program formatting is done to make a program more readable, it is called prettyprinting. Prettyprinting is encouraged by C++ relaxed rules about blank spaces and lines, we can convey the logical structure of a program at a glance.


Q. 192335 Syntax error refers to


A. grammar of the language.

B. violation of grammar rules.

C. logical mistakes.

D. run time mistakes.

Right Answer is: B

SOLUTION

Syntax errors occur when rules of a programming langugage are misused i.e., when a grammatical rule of C++ is violated.


Q. 192336 The code which can handle exceptional data errors and operational errors is called


A. guard code.

B. reliable code.

C. secure code.

D. safety code.

Right Answer is: A

SOLUTION

To produce robust programs, we need a code which can handle incorrect data or incorrect operations. This code is guard code.


Q. 192337 Semantics is


A. a documentation code.

B. same as syntax.

C. a statement without meaning.

D. a set of rules that govern the meaning of a statement.

Right Answer is: D

SOLUTION

Semantic errors occur when statements are not meaningful.


Q. 192338 Syntax error refers to


A. grammar of the language.

B. violation of grammar rules.

C. logical mistakes.

D. run time mistakes.

Right Answer is: B

SOLUTION

For compiled languages, syntax error occurs strictly at compile time. For interpreted languages, syntax errors can not be detected until run time.


Q. 192339 The names we provide for variables, types, functions and labels in our program are


A. identifiers.

B. keywords.

C. reserved words.

D. nulls.

Right Answer is: A

SOLUTION

Identifiers must begin with a letter or underscore. Only letters (A-Z, a-z), digits(0-9), or underscore( _ ) may follow the initial letter.


Q. 192340 Pretty printing means


A. correcting syntax to make program more readable.

B. formatting a program to make it more readable.

C. avoiding blank lines.

D. avoiding blank spaces.

Right Answer is: B

SOLUTION

Prettyprinting is encouraged by C++ relaxed rules about blank spaces and lines.


Q. 192341 Syntax error is a/an


A. logical error.

B. a type of maintainence of the system.

C. invalid construction of sentences.

D. invalid construction of statements in programming language.

Right Answer is: D

SOLUTION

When grammatical rules of C++ are violated, they result in syntax errors.


Q. 192342 Internal documentation of the program uses


A. only comments.

B. only indentation.

C. both comments and indentation.

D. only keywords.

Right Answer is: C

SOLUTION

Comments are the explanatory text, information embedded in the source code of a program.


Q. 192343 Comments are given by


A. // only.

B. /*....*/ only.

C. // and /*...*/.

D. /// and /////*........*//////.

Right Answer is: C

SOLUTION

Comments are used for explanatory text, or information embedded in the source program.


Q. 192344 Algorithm can also be described with the help of


A. self documenting code.

B. paragraph writing.

C. a flow diagram.

D. venn diagram.

Right Answer is: C

SOLUTION

Flow diagram includes flow chart, control flow diagram, flow map, data flow diagram, etc.


Q. 192345 Formatting style


A. has effect on the compiler.

B. does not effect the compiler.

C. has effect on linker.

D. does not effect the linker.

Right Answer is: B

SOLUTION

Formatting style increases readability of a program, it has no effect on the compiler.


Q. 192346 Test and debug program means


A. rectifying errors.

B. finding errors.

C. finding bugs.

D. executing the program.

Right Answer is: A

SOLUTION

Testing is finding errors in the program, and debugging means to rectify or fix the error.


Q. 192347 Role of comments and indentation in a program is to


A. highlight syntax errors.

B. give user's views.

C. give explanatory notes to the reader of program.

D. highlight semanic errors.

Right Answer is: C

SOLUTION

They explain the role and purpose of identifiers and enhance program understanding.


Q. 192348 Adaptive Maintenance


A. is a new technology coming with new features.

B. anticipates errors.

C. depends on company policies.

D. keeps attuned with new features.

Right Answer is: C

SOLUTION

Changes in the environment in which an information system operates may also lead to system maintenance.


Q. 192349 The statement X * Y = Z ;
results in a


A. syntactical error.

B. run-time error.

C. logical error.

D. semantical error.

Right Answer is: D

SOLUTION

Semantics refers to the set of rules which give the meaning of a statement. Here, the statement will result in a semantical error as an expression cannot come on the left side of an assignment statement.


Q. 192350 Source code and object code are


A. predefined words/keywords.

B. synonyms for each other.

C. relative terms.

D. in the binary form.

Right Answer is: C

SOLUTION

Source code is converted to machine code (object code), which is understandable by machine.


Q. 192351 Program maintenance refers to


A. fixing of errors after program has been completed.

B. correcting the program by removing bugs.

C. discarding the software if any errors are found.

D. modification of a program, after it has been completed.

Right Answer is: D

SOLUTION

There can be four kinds of maintenance: corrective maintenance, adaptive maintenance, preventive maintenance and perfective maintenance.


Q. 192352 Logic of system flowcharts


A. consider both source code and object code.

B. consider object code.

C. consider source code.

D. consider pre and post processing.

Right Answer is: D

SOLUTION

Data preprocessing describes any type of process performed on raw data to prepare it for another processing procedure. Post processing means any type of process performed on the output obtained after one processing procedure.


Q. 192353 Developing and writing good program requires


A. medium qualiy.

B. communication skills.

C. consciously following guidelines.

D. general knowledge.

Right Answer is: C

SOLUTION

A good programmer requires sound technical skills, analytical and problem solving skills, knowledge of languages, patience and should be a hard worker.


Q. 192354 To make the program readable and understandable, one should


A. avoid free formatting.

B. use free formatting.

C. avoid blank lines.

D. avoid spaces.  

Right Answer is: A

SOLUTION

To make the program readable and understandable, use of free formatting should be avoided and indentation and blank lines and spaces should be used while writing a program. 


Q. 192355 The difference between pretty printing and echo printing is echo printing 


A. makes the program more readable.

B. makes the program complex.

C. makes the program understandable.

D. prints the input data.  

Right Answer is: D

SOLUTION

Printing of the input data, as they are read, is called echo printing. Whereas, when program formatting is done to make a program more readable, it is called pretty printing.


Q. 192356 The code to handle exceptional data is called 


A. protected code.

B. private code.

C. secured code.

D. guard code.

Right Answer is: D

SOLUTION

The code which can handle exceptional data errors and operational errors is called guard code.


Q. 192357 Program formatting has more effect


A. when free formatting style is followed.

B. when a consistent style is followed.

C. when prettyprintiing is avoided.

D. when the diagram method is followed.

Right Answer is: B

SOLUTION

Though formatting style does not make a difference for the compiler but a reader faces a great difficulty in understanding the program. Therefore, use of free formatting should be avoided and indentation and blank lines, spaces should be used while writing a program. Prettyprinting is encouraged by C++ relaxed rules about blank spaces and lines, we can convey the logical structure of a program at a glance.


Q. 192358 Free formatting style


A. effects the compiler.

B. does not effect the compiler.

C. displays incorrect output.

D. is easy to read and understand.

Right Answer is: B

SOLUTION

Formatting style does not make a difference for the compiler but a reader faces a great difficulty in understanding the program. Therefore, use of free formatting should be avoided and indentation and blank lines, spaces should be used while writing a program.


Q. 192359 Documentation refers to


A. code only.

B. flow diagrams only.

C. description, specifications, code and comment.

D. venn diagrams only.  

Right Answer is: C

SOLUTION

Documentation refers to written descriptions, specifications, design, code and comment, internal and external to a program, which make a program more understandable, readable and more easily modifiable.


Q. 192360 Algorithm can also be described with the help of


A. charts.

B. paragraph writing.

C. with the help of a flow diagram.

D. with the help of venn diagram.

Right Answer is: C

SOLUTION

The logical sequence of precise steps that solve a given problem is called an algorithm. A flowchart is a type of diagram that represents an algorithm, showing the steps as boxes of various kinds and their order by connecting these with arrows.


Q. 192361 Example of a meaningful identifier is


A. total.

B. a.

C. b.

D. a12.

Right Answer is: A

SOLUTION

Identifiers identify different parts of a program.Therefore, they should have meaningful names.


Q. 192362 Before compilation, the inclusion of a file takes place at the


A. interpreter.

B. preprocessor stage.

C. new stage.

D. post processor stage.

Right Answer is: B

SOLUTION

Every step that is performed before compilation comes under the preprocessor stage.


Q. 192363 Internal documentation of the program uses


A. only comments.

B. only indentation.

C. both comments and indentation.

D. only keywords.

Right Answer is: C

SOLUTION

Internal documentation of the program uses both comments and indentation. The comments are the lines ignored by the compiler. They are used to program description. 


Q. 192364 Two types of compile-time errors are


A. run-time errors and logical errors.

B. semantics errors and logical errors.

C. syntax errors and run-time errors.

D. syntax errors and semantics error.

Right Answer is: D

SOLUTION

Syntax errors occur when rules of a programming language are misused i.e., when a grammatical rule of C++ is violated. Semantics refers to the set of rules which give the meaning of a statement.


Q. 192365 If a program displays proper error messages, it is said to be


A. portable.

B. reliable.

C. user-friendly.

D. effective.  

Right Answer is: B

SOLUTION

A good program should be reliable i.e., it must be able to handle unexpected situations like wrong data or no data. The program should display proper error messages.


Q. 192366 Syntax error is


A. logic error.

B. grammar testing.

C. invalid construction of sentences.

D. invalid construction of statements in programming language.

Right Answer is: D

SOLUTION

Syntax errors occur when rules of a programming language are misused i.e., when a grammatical rule of C++ is violated.


Q. 192367 Prologue refers to


A. set of rules.

B. comments summarising the purpose of the program.

C. construction of statements.

D. printing input data.

Right Answer is: B

SOLUTION

Prologue also means an introductory speech, or giving background information about a topic.


Q. 192368 Logical errors


A. give errors while designing the program.

B. give correct result.

C. do not give correct error.

D. give compiling errors.

Right Answer is: C

SOLUTION

Logical errors make the program compile and run but do not give correct result. Algorithm and thus the program code, both should be based on correct logic.


Q. 192369 When statements are not meaningful, they are


A. syntax errors.

B. semantic errors.

C. run time errors.

D. logical errors.

Right Answer is: B

SOLUTION

Semantics refers to the set of rules which give the meaning of a statement.


Q. 192370 A good program


A. uses free formatting style.

B. is complex.

C. has bugs.

D. does not use syntax or semantics.

Right Answer is: B

SOLUTION

In free formatting style, any number of statements can be written in one line using a statement separator.


Q. 192371 Use of variable before its initialization is an example of


A. syntax error.

B. semantic error.

C. logical error.

D. compile time error.

Right Answer is: C

SOLUTION

Logical errors are because of the programmer's mistaken analysis of the problem he is trying to solve.


Q. 192372 Manuals are


A. algorithms.

B. flowcharts.

C. aggregation of modules.

D. operators.

Right Answer is: C

SOLUTION

Modules make information easy to specific user for whom they are prepared. They reduce costs of production and maintenance.


Q. 192373 Identifiers should


A. use keywords.

B. always begin with a digit.

C. have similar looking names.

D. have meaningful names.

Right Answer is: D

SOLUTION

Following guidelines should be followed while dealing with identifers:
1. Assign meaningful names for all identifers viz. variables, functions and procedures, etc.
2. Do not use similar looking names e.g., manage, manager.
3. Always assign names to scalar constants when it helps in clarity and readability.


Q. 192374 When a program is able to handle unexpected situations like wrong data, then it said to be a


A. reliable program.

B. portable program.

C. user-friendly program.

D. readable program.

Right Answer is: A

SOLUTION

It displays proper error messages, whenever situations like wrong data, or no data occur.


Q. 192375 The documentation that consists of written information outside the body of source code is


A. internal documentation.

B. external documentation.

C. self documentation.

D. prettyprinting

Right Answer is: B

SOLUTION

It may include the history of the program's development and subsequent modifications, the top-down design and user's manuals.


Q. 192376 Self documentation code


A. is a characteristic of a good program.

B. is inefficient.

C. is prettyprinting.

D. is same as external documentation.

Right Answer is: A

SOLUTION

Self-documenting code is a source code that uses meaningful identifier-names.


Q. 192377 What is robustness?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

The ability of a program to recover following an error and to continue operating within its environment is called robustness.


Q. 192378 What is the free formatting style in C++ ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Free formatting style in C++ means that a number of statements can be written in one line using statement seperator.
For example:
int main( ) { if { i== 50) cout<< i;<< return 0;}


Q. 192379 What do you understand by portability of a program?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Portability refers to programs that we move from one computer to another without having to make any changes is a portable program.


Q. 192380 What is 'testing'?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Testing is the process of finding errors  in a program and then debug the errors found during testing process. Some programs support daily activities and decisions. The program should run correctly and free of errors.


Q. 192381 What are prologues? Give examples.
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Prologues refer to the comments at the beginning of a program that summarizes the purpose of the program. 
For example,
1) 
/*
   files used       employees files (input file)
                              salary file (output file) */

2) /* validation employee number against enployee master file */

 


Q. 192382 What are the two conditions that should be met while designing computer software ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Software designing should meet two conditions:-   
Firstly, the program structure (using top down approach or any other popular approach) and secondly, good program representation.
The program presentation style 
should be readable, easily tested, can be understood and easily checked for errors i.e., debugging and modifying it, should also be easy, such that, there is minimum wastage of time, effort and cost.


Q. 192383 Explain the various types of technical documentation.
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

The technical documentation is of two types:
1. External documentation: consists of the written information that is outside the body of the source code. It may include the history of the program's development and subsequent modifications, the top-down design, "architectural" diagrams of the program's structures and user's manuals.
2. Internal documentation: includes comments, self-documenting code and prettyprinting. The goal of all these features is to make program readable, understandable and easily modifiable.


Q. 192384 What are the different modules of a documentation?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

The modules accessible to specific users are :-

  1. Users Manual
  2. Input Preparation Manual
  3. Operations Manual
  4. Equipment Manual
  5. Programmer Manual
  6. Program Manual
  7. Systems manual
  8. Standards Manual

 Manuals reduce the costs of production and maintenance.


Q. 192385 What are run time errors ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

These occur when the program is being executed. These errors are harder to detect. Some of them can stop the execution of a program which is then called program "crashed" or "abnormally terminated". The program should be robust to recover and continue following the error.


Q. 192386 What are logical errors?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Programs having logical errors do not output the correct result. These errors are not shown at compile time or run time. They occur due to programmers mistake in analyses of the problem that is to be solved. The reasons could be various for e.g., using an incorrect algorithm.


Q. 192387 What do you understand by 'program structure' ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

A well written program structure should follow top-down approach or any other popular approach. Under this, the main task is divided in clear cut logical subtasks i.e., subroutines. Decide local and global variables, hiding information etc. Test each subroutine and then join all of them to make an overall program structure.


Q. 192388 Indicate places where comments can be used ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Comments are helpful in :-
a) Starting a program using comment which highlights the purpose of the program. 
b) Start every function with comment describing the purpose of the function.
c) For describing the purpose of defining a variable, where self documentation is not possible.


Q. 192389 How will you evaluate a good written program?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

To evalute a program, following guidelines should be followed:-
 i) The program should serve the purpose for which it has been written. 
 ii) Easy to a) understand – user friendly b) maintain and c) debug.
 iii) Optimize computer resources in terms of CPU time and Memory. 
 iv) Gracefully exit with appropriate message.


Q. 192390 What are linker errors ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Programs after being compiled are linked with the library to create execution file. It is possible that the program may not link with the library. The program may be stored in separate files and the files may be compiled separately. The files are linked together. Linker error may arise because of some mis-spelling. For e.g., Square( ) and Squar( ) are spelled differently in two separate places.


Q. 192391 What can be done to optimize memory requirement of the computer ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

Resources of the computer can be optimized  by an efficiently written  program. The resources are CPU time and RAM. A properly designed algorithm can optimize resources.
For example, a*2 and a+a will
give the same result but the second method is more efficient.


Q. 192392 What is conditional compilation ?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

The conditional compilation allow sections of code to be selectively included for or excluded from compilation, depending on programmer-specified conditions being satisfied. It is usually used as a portability tool for making the program code specific to hardware and software.


Q. 192393 What are the guidelines that should be followed while dealing with identifiers?
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.

Right Answer is:

SOLUTION

One should: 
a)  Assign meaningful names for all identifiers ie., variables,functions, procedures etc. 
b)  Avoid similar looking names.
c)  Always assign names to scalar constants when it helps in clarity and readability.


Q. 192394 The language having strong abstraction from the details of the computer is


A. high level language.

B. assembly language.

C. machine language.

D. character language.

Right Answer is: A

SOLUTION

The greater abstraction and hiding details in a high level language is generally intended to make the language more user friendly. It then includes concepts from the problem domain instead of those of the machine used.


Q. 192395 The language in which instructions are written using symbolic names (like READ, STORE, ADD, etc.) is


A. a high level language.

B. an assembly language.

C. a machine language.

D. a character language.

Right Answer is: B

SOLUTION

In assembly language, the instructions are written using symbolic names for machine operations and operands make programming less tedious than machine language programming.


Q. 192396 The language in which instructions are written in binary code (0 and 1) is called


A. high level language.

B. assembly language.

C. machine language.

D. digital language.

Right Answer is: C

SOLUTION

Machine language is the only language, which computer can execute directly. It is also called binary language as it is a combination of 0’s and 1’s.


Q. 192397 The essential characteristics of an object which distinguish it from all other kinds of objects is


A. aggregation.

B. abstraction.

C. modularity.

D. encapsulation.

Right Answer is: B

SOLUTION

Abstraction focuses on the details of an object leaving behind the implementation details, which are not essential.


Q. 192398 The class whose properties are inherited by other classes is known as the


A. base class.

B. derived class.

C. derivable class.

D. inherited class.

Right Answer is: A

SOLUTION

Derived classes inherit properties, including the methods of old class, which are called base class or super class.


Q. 192399 Machine code produced by a compiler or an assembler from a source code is known as


A. object code.

B. class code.

C. structure code.

D. defined code.

Right Answer is: A

SOLUTION

In computer science, an object code, or an object file, is the representation of the code that a compiler or an assembler generates by processing a source code file.


Q. 192400 The programming technique which focuses on the algorithm, is called


A. procedural language.

B. object oriented language.

C. object based language.

D. structural language.

Right Answer is: A

SOLUTION

Procedural languages are used in the traditional programming that is based on the algorithms.


PreviousNext