🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

FOPR-REVIEWER.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

FOPR REVIEWER What is a correct syntax to output "Hello World" in C? printf(“hello world)” How do you insert COMMENTS in C code? // When a variable is created in C, a memory address is assigned to the variable YES. In C, code statements must end with a semicolon (;) YES How can you create a variabl...

FOPR REVIEWER What is a correct syntax to output "Hello World" in C? printf(“hello world)” How do you insert COMMENTS in C code? // When a variable is created in C, a memory address is assigned to the variable YES. In C, code statements must end with a semicolon (;) YES How can you create a variable with the numeric value 5? Inf number = 5 How can you create a variable with the floating number 2.8? Float number = 2.8f Operators use to add values. + Function is often used to output values and print text? printf(“”) Format specifier is often used to print integers. %d Operator can be used to compare two values. == keyword is used to return a value inside a function return 0 C language was developed by Dennis Ritchie at the Bell Telephone Laboratories. The level of language of C programming. High level Total number of operators in C language 3 command that ends statement of C language ; standard input and output header file Data storage format that a variable can store a data to perform a specific operation data types Use for multi-line comment in C language Symbols that provide path to preprocessor directive of C language #include Year when C language was developed 1972 The operating system used in implementing the C language unix Syntax/command that allows/take input on the screen. algorithm Represents a graphical representation of process flow flowchart Step-by-step procedures in order to solve a specific problem algorithm Draw the symbols that Indicates that the computer is to obtain data or output results.(Parallelogram) Draw the symbols that used to assign initial value of a variable. (rectangle) Draw the symbols that Indicates any type of internal operation inside the processor or memory. (rectangle) Draw the symbols that Used to ask question that can be answered in binary format or Yes/No. (diamond) Draw the symbols that Indicates the start or end of the program (oval) /a alert /f formfeed /b backspace /v vertical tab /n newline /t horizontal tab Ir carriage return // backslash originally referred to any computation performed via a set of rules applied to numbers written in decimal form. Algorithm Pseudocode Constructs These constructs also called keywords are used to describe the control flow of the algorithm. SEQUENCE represents linear tasks sequentially performed one after the other. WHILE is a loop with a condition at its beginning. REPEAT-UNTIL is a loop with a condition at the bottom. FOR is another way of looping. IF-THEN-ELSE is a conditional statement changing the flow of the algorithm. CASE is the generalization form of IF-THEN-ELSE Pseudocode is an artificial and informal language that helps develop algorithms.

Use Quizgecko on...
Browser
Browser