A. operator overloading.
B. overriding.
C. virtual overloading.
D. polymorphism.
In operator overloading, a single function name can be used to handle different number and different types of arguments.
A. modular programming.
B. procedural programming.
C. object based programming.
D. object-oriented programming.
In procedural programming, the problem is viewed as a sequence of things to be done such as reading, calculating and printing.
A. low level language.
B. machine language.
C. assembly language.
D. high level language.
High level language use constructs for sequence, selection(decision) and iteration(looping).
A. John Ray.
B. Alan Kay.
C. Hug W Monk.
D. Ralph Johnson.
Alan Kay is one of the promoters of the object–oriented paradigm.
A. low level language.
B. machine language.
C. assembly language.
D. high level language.
HLLs are more close to the programmer, as these offer English like keywords and programming constructs (sequence, selection, iteration).
A. modular programming.
B. open structured programming.
C. Jackson structured programming.
D. event driven programming.
Data structured programming or Jackson structured programming is based on aligning data structures with program structures.
A. C.
B. Ada.
C. C++.
D. Simula.
Ada is an object-based language. Simula(1967) is accepted as first object-oriented language.
A. modular programming.
B. procedural programming.
C. object based programming.
D. object-oriented programming.
Structured programming is a sub-discipline of procedural programming. It is famous for removing reliance on GOTO statements.
A. object based model.
B. object oriented model.
C. structural model.
D. data model.
At low level, structured programs are often composed of simple, hierarchical program flow structures.
A. modular language.
B. procedural language.
C. structural language.
D. object-oriented language.
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).
A. object oriented language.
B. object based language.
C. procedural language.
D. structural language.
Languages that support classes but not polymorphism are object based languages.
A. polymorphism.
B. inheritance.
C. overloading.
D. overriding.
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).
A. base class.
B. concrete class.
C. abstract class.
D. super class.
Concrete class is the derived class that implements all the missing functionalities which are not implemented in the base class or abstract class.
A. external documentation and internal documentation.
B. program documentation and explanatory comments.
C. program structure and program documentation.
D. prologues program documentation.
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.
A. prints expressions without blank spaces.
B. handles exceptional data.
C. is recovering from an error.
D. is finding input in program.
Echo printing is printing of the input data, as they are read.
A. by the compiler.
B. on seeing the result.
C. by the linker.
D. at time of binding.
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.
A. robust.
B. crashed.
C. complicated.
D. guarded.
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".
A. bug.
B. fault.
C. discrepancy.
D. mistake.
An error, sometimes called 'a bug', is anything in the code that prevents a program from compiling and running correctly.
A. friends of the user.
B. prompts user for action and helps user to select appropriate action.
C. programmer.
D. user.
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.
A. code the algorithm.
B. compile the program.
C. execute the program.
D. crack the problem.
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.
A. guard code.
B. prettyprinting.
C. guard code.
D. indentation.
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.
A. cracking.
B. processing.
C. coding.
D. formatting.
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.
A. prettyprinting.
B. formatting.
C. echo printing.
D. robustness.
The ability of a program, to recover following an error and to continue operating within its enviornment, is called robustness.
A. analyze the problem.
B. deisgn programs.
C. code programs.
D. understand the problem well.
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?"
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.
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.
A. inserting formatting style in the program.
B. inserting prologues in the program.
C. self documentation code.
D. modification of a program.
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.
A. finding and correcting errors.
B. counting the number of errors.
C. changing the formatting style.
D. finding the semantical errors.
Testing is the process of finding errors in a program and debugging is the process of correcting errors found during the testing process.
A. guides.
B. manuals.
C. structures.
D. coding.
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.
A. an algorithm.
B. a flowchart.
C. a pseudocode.
D. a code in the machine language.
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.
A. set of rules.
B. comments summarising the purpose of the program.
C. construction of statements.
D. printing of input data.
Prologues are the comments in the beginning of a program that summarises the purpose of the program.
A. highlight syntax errors.
B. highlight semantic errors.
C. make the program readable and understandable.
D. make the program complex.
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.
A. storage mapping.
B. job control instruction.
C. prettyprinting.
D. robustness.
Robustness is the ability to recover an error and continue operating within the environment.
A. run-time error.
B. compile-time error.
C. logical error.
D. semantical error.
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.
A. correcting syntax to make program more readable.
B. formatting a program to make it readable.
C. avoiding blank lines.
D. avoiding blank spaces.
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.
A. grammar of the language.
B. violation of grammar rules.
C. logical mistakes.
D. run time mistakes.
Syntax errors occur when rules of a programming langugage are misused i.e., when a grammatical rule of C++ is violated.
A. guard code.
B. reliable code.
C. secure code.
D. safety code.
To produce robust programs, we need a code which can handle incorrect data or incorrect operations. This code is guard code.
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.
Semantic errors occur when statements are not meaningful.
A. grammar of the language.
B. violation of grammar rules.
C. logical mistakes.
D. run time mistakes.
For compiled languages, syntax error occurs strictly at compile time. For interpreted languages, syntax errors can not be detected until run time.
A. identifiers.
B. keywords.
C. reserved words.
D. nulls.
Identifiers must begin with a letter or underscore. Only letters (A-Z, a-z), digits(0-9), or underscore( _ ) may follow the initial letter.
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.
Prettyprinting is encouraged by C++ relaxed rules about blank spaces and lines.
A. logical error.
B. a type of maintainence of the system.
C. invalid construction of sentences.
D. invalid construction of statements in programming language.
When grammatical rules of C++ are violated, they result in syntax errors.
A. only comments.
B. only indentation.
C. both comments and indentation.
D. only keywords.
Comments are the explanatory text, information embedded in the source code of a program.
A. // only.
B. /*....*/ only.
C. // and /*...*/.
D. /// and /////*........*//////.
Comments are used for explanatory text, or information embedded in the source program.
A. self documenting code.
B. paragraph writing.
C. a flow diagram.
D. venn diagram.
Flow diagram includes flow chart, control flow diagram, flow map, data flow diagram, etc.
A. has effect on the compiler.
B. does not effect the compiler.
C. has effect on linker.
D. does not effect the linker.
Formatting style increases readability of a program, it has no effect on the compiler.
A. rectifying errors.
B. finding errors.
C. finding bugs.
D. executing the program.
Testing is finding errors in the program, and debugging means to rectify or fix the error.
A. highlight syntax errors.
B. give user's views.
C. give explanatory notes to the reader of program.
D. highlight semanic errors.
They explain the role and purpose of identifiers and enhance program understanding.
A. is a new technology coming with new features.
B. anticipates errors.
C. depends on company policies.
D. keeps attuned with new features.
Changes in the environment in which an information system operates may also lead to system maintenance.
A. syntactical error.
B. run-time error.
C. logical error.
D. semantical error.
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.
A. predefined words/keywords.
B. synonyms for each other.
C. relative terms.
D. in the binary form.
Source code is converted to machine code (object code), which is understandable by machine.
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.
There can be four kinds of maintenance: corrective maintenance, adaptive maintenance, preventive maintenance and perfective maintenance.
A. consider both source code and object code.
B. consider object code.
C. consider source code.
D. consider pre and post processing.
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.
A. medium qualiy.
B. communication skills.
C. consciously following guidelines.
D. general knowledge.
A good programmer requires sound technical skills, analytical and problem solving skills, knowledge of languages, patience and should be a hard worker.
A. avoid free formatting.
B. use free formatting.
C. avoid blank lines.
D. avoid spaces.
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.
A. makes the program more readable.
B. makes the program complex.
C. makes the program understandable.
D.
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.
A. protected code.
B. private code.
C. secured code.
D. guard code.
The code which can handle exceptional data errors and operational errors is called guard code.
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.
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.
A. effects the compiler.
B. does not effect the compiler.
C. displays incorrect output.
D. is easy to read and understand.
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.
A. code only.
B. flow diagrams only.
C. description, specifications, code and comment.
D. venn diagrams only.
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.
A. charts.
B. paragraph writing.
C. with the help of a flow diagram.
D. with the help of venn diagram.
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.
A. total.
B. a.
C. b.
D. a12.
Identifiers identify different parts of a program.Therefore, they should have meaningful names.
A. interpreter.
B. preprocessor stage.
C. new stage.
D. post processor stage.
Every step that is performed before compilation comes under the preprocessor stage.
A. only comments.
B. only indentation.
C. both comments and indentation.
D. only keywords.
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.
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.
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.
A. portable.
B. reliable.
C. user-friendly.
D. effective.
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.
A. logic error.
B. grammar testing.
C. invalid construction of sentences.
D. invalid construction of statements in programming language.
Syntax errors occur when rules of a programming language are misused i.e., when a grammatical rule of C++ is violated.
A. set of rules.
B. comments summarising the purpose of the program.
C. construction of statements.
D. printing input data.
Prologue also means an introductory speech, or giving background information about a topic.
A. give errors while designing the program.
B. give correct result.
C. do not give correct error.
D. give compiling errors.
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.
A. syntax errors.
B. semantic errors.
C. run time errors.
D. logical errors.
Semantics refers to the set of rules which give the meaning of a statement.
A. uses free formatting style.
B. is complex.
C. has bugs.
D. does not use syntax or semantics.
In free formatting style, any number of statements can be written in one line using a statement separator.
A. syntax error.
B. semantic error.
C. logical error.
D. compile time error.
Logical errors are because of the programmer's mistaken analysis of the problem he is trying to solve.
A. algorithms.
B. flowcharts.
C. aggregation of modules.
D. operators.
Modules make information easy to specific user for whom they are prepared. They reduce costs of production and maintenance.
A. use keywords.
B. always begin with a digit.
C. have similar looking names.
D. have meaningful names.
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.
A. reliable program.
B. portable program.
C. user-friendly program.
D. readable program.
It displays proper error messages, whenever situations like wrong data, or no data occur.
A. internal documentation.
B. external documentation.
C. self documentation.
D. prettyprinting
It may include the history of the program's development and subsequent modifications, the top-down design and user's manuals.
A. is a characteristic of a good program.
B. is inefficient.
C. is prettyprinting.
D. is same as external documentation.
Self-documenting code is a source code that uses meaningful identifier-names.
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;}
Portability refers to programs that we move from one computer to another without having to make any changes is a portable program.
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.
For example,
1) /* files used employees files (input file)
salary file (output file) */
2) /* validation employee number against enployee master file */
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.
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.
The modules accessible to specific users are :-
Manuals reduce the costs of production and maintenance.
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.
Comments are helpful in :-
a)
b)
c)
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.
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.
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.
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.
One should:
a)
b)
c)
A. high level language.
B. assembly language.
C. machine language.
D. character language.
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.
A. a high level language.
B. an assembly language.
C. a machine language.
D. a character language.
In assembly language, the instructions are written using symbolic names for machine operations and operands make programming less tedious than machine language programming.
A. high level language.
B. assembly language.
C. machine language.
D. digital language.
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.
A. aggregation.
B. abstraction.
C. modularity.
D. encapsulation.
Abstraction focuses on the details of an object leaving behind the implementation details, which are not essential.
A. base class.
B. derived class.
C. derivable class.
D. inherited class.
Derived classes inherit properties, including the methods of old class, which are called base class or super class.
A. object code.
B. class code.
C. structure code.
D. defined code.
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.
A. procedural language.
B. object oriented language.
C. object based language.
D. structural language.