In: Computer Science
* what are pseudocode and flowcharts and what are they used for?
* how to interpret branching and looping logic?
* What is the difference between the two types of identifiers?
* What is the difference between two types of containers?
* what are functions and methods and what are they used for?
* what objects are?
What are pseudocode and flowcharts and what are they used for?
Ans: Flowcharts are written with program flow from the top of a page to the bottom. Each command is placed in a box of the appropriate shape, and arrows are used to direct program flow.
Pseudocode is a method of describing computer algorithms using a combination of natural language and programming language. It is essentially an intermittent step towards the development of the actual code.
How to interpret branching and looping logic?
Ans: Branching statements include mostly break,return,goto and continue and it is condition based eg if statements and switch statements.
looping logic is nothing but a code which is repeatation of a section of code number of times until the condition is fulfilled.
What is the difference between the two types of identifiers?
Ans: There are two diffrent types of identifier Standard identifier and user defined identifiers
Standard identifiers: These identifiers are predefined and are used in special purpose in the source code for example in the c program printf, scanf, int, this these are the standard identifiers.
User defined identifiers: Programmer or user can define their own identifers according to their needs for eg in the c program area and Area are considered as two different identifiers.
What is the difference between two types of containers?
Ans: Two types of containers are single valued container and associative container.
Single-value containers store each object independently. Objects may be accessed directly or with an iterator.
An associative container uses an associative array, map, or dictionary, composed of key-value pairs, such that each key appears at most once in the container. The key is used to find the value, the object, if it is stored in the container. Associative containers are used in programming languages as class templates.
What are functions and methods and what are they used for?
Ans: Method and a function are the same, with various terms. A method is a strategy or capacity in object-oriented programming. A function is a group of reusable code which can be called anyplace in your program. This dispenses with the requirement for composing a similar code again and again
what objects are?
Ans: Object are bundles of variables and related methods. Software objects are modeled after real-world objects in that they too have state and behavior. A software object maintains its state in one or more variables. A variable is an item of data named by an identifier. A software object implements its behavior with methods. A method is a function (subroutine) associated with an object.