Can someone check this before i write it down. Thanks
1ans)Procedure Oriented Programing language: --in procedure oriented programing language the entire program is divided into small small parts like functions. --in object oriented programming language everything is in the form of objects. --the major importance given to is function not data within it in procedure oriented language. --but comes to object oriented programing language everything is based on data. --in procedure oriented programing language the aproch followed isn top down where as in object oriented programing language it follows bottom up in procedure oriented programing language.the data is passed to various functions inside the program whereas in object oriented programing language .object is created and it passed to methods. in procedure oriented programing language there is no access specifiers.but where as in object oriented programing we have access specifiers 2ans)traversal: traversal concept is applicable for data structure. it is used for moving elements from one to other in data structure. example :trees iteration : it is used for loop array elements which does require no added space while executing. example for loop ,while loop etc importance of data structure: data structures are organizing data in efficient way and perfome operations on it. based on type of operations different data strucuters are available there are 2 types; primitive data structure and abstract data structure primitive ones are integer,float ect abstract ones are linkedlist,graph,trees etc 3 ans)"||" it is an or operator if there are multiple conditions one follewed by other with 'or' operator between them states that either any one condition is sufficient to satisfiy not all example: if(value==2|| value==4 || value==6) print statement1 else print statement2 in the above example,the value variable contains data is either 2,4.6 then the statement1 executes or else statement2 the if condition returns true only if value -2.4.6 or else false "&&"operator: this is "and" operator this operator returns true only if given all conditions should satisfy.or else it returns false example: if(value==3 &&value==4 && value==6) print statement1 else print statement2 this is same example we used for 'or' operator in the above example statement1 does not executes because in order to execute it should definatly satisfy all the three conditions 4ans)source code: source code is user understandable code or source code is write by user in integrated development environment or text editors. source code contains statements ,librarays etc machine code: the machine code is machine understandable code.this is obtained from source code. the machine can understand only o or 1's .so all the source code is converted to machine code.and the local machine execute the machine code machine code contains instructions to registers etc. these instructions are executed by system. compiler: compiler is converted source code to machine code.and another task performed by <a href="http://compiler.is" target="_blank">compiler.is</a> to check type errors or syntactical errors in source <a href="http://code.if" target="_blank">code.if</a> any bugs or errors it find it should show error statements or if everything is fine then it converts the source code to machine code. the source code is convered into machine code by compiling Strings and Arrays: Strings and Arrays are somewhat similar. one thing or one difference is Arrays have some fixed length ..we cannot change the length once it created where as string have no lenght. strings have only ascii charecters where as arrays have any type like int ,long etc stack and queue are 2 data structres: stack follows lifo=last in first out the data is added from last and removed from last it is something like dvd racks or biscuit packet. where as in queue folows fifo=first in first out added elements from last and remove from first 6 ans) void and return functions for example: void fun1(){ statements; } this function when it calls it executes the statement and returns nothig. generally void return types returns nothing for example: int fun1(){ statement; } this function returns integer value from it after executing,similarly in the same long,double,float ,string etc are used
@mhchen
Join our real-time social learning platform and learn together with your friends!