Theory Questions

Concepts of Conditions and Loops

Concepts of Conditions and Loops [ICSE Syllabus on this Topic] Utilization of loops. Fixed number of Iteration. The for Loop, unknown number of Iteration – while, do-while loop, continue, break. Nested Loops. Q. What are iteration statements? Name the iteration statements provided by Java? Ans: Iteration statements are statements that allows a set of instructions …

Concepts of Conditions and Loops Read More »

Decision Making

Decision Making [ICSE Syllabus on this Topic] Application of if-then, if-then-else, switch (default, break). Q. What is a statement? Ans: Statements are the instructions given to the computer to perform any kind of action, as data movements, making decision or repeating action. Statements form the smallest executable unit and terminated with semi-colon. Q. What are …

Decision Making Read More »

User Define Functions

User Define Functions [ICSE Syllabus on this Topic “User Define Functions”] User Define Functions as a way to define operations/methods/messages. Pure functions return values and do not change state, impure functions may return values but also change state, return type argument to function, function prototype and function signature, overloading. Variable of a class type as …

User Define Functions Read More »

Use of Constructor

Use of Constructor [ICSE Syllabus on this Topic “Use of Constructor”] Default constructor, Constructor with arguments, default initializing. Overloading constructor. Q. What is constructor? Ans: A constructor is a Member function that automatically called, when the object is created of that class. It has the same name as that of the class name and its …

Use of Constructor Read More »

Class as the Basis of all Computation

Class as the Basis of all Computation [ICSE Syllabus on this Topic “Class as the Basis of all Computation”] Objects encapsulates state and behavior- numerous example, member variables, attributes or features. Variable define states, Member functions/operation/methods/messages defines behaviors. Class as abstractions for set of objects, class as an object factory, concept of type, primitive data …

Class as the Basis of all Computation Read More »

Elementary Concepts of Object Class

Elementary Concepts of Object Class [ICSE Syllabus on this Topic “Elementary Concepts of Object Class”] Modeling entities and their behavior by objects. A class as a specification of objects and as an object factory, computation as message passing/function call between objects (many example should be done to illustrate this). Object encapsulate state (attribute) and have …

Elementary Concepts of Object Class Read More »