WorksheetsProblem Solving and Programming Design (part 4)
Total questions: 17
Worksheet time: 9mins
// finding area of circle
Comment
Preprocessor directives
Standard header file
Main Function
Block of Function
#include <iostream.h>
Comment
Preprocessor directives
Standard header file
Main Function
Block of Function
The C++ standard library traditionally declare their standard functions in header files
Comment
Preprocessor directives
Standard header file
Main Function
Block of Function
int main ()
Comment
Preprocessor directives
Standard header file
Main Function
Block of Function
{
}
Comment
Preprocessor directives
Standard header file
Main Function
Block of Function
float radius,area;
const float pi=3.14
Identifiers
Reserved word
statement
if / while / do
Identifiers
Reserved word
statement
cout<<"please enter the radius for the circle : ";
Identifiers
Reserved word
statement
=
Equal to
not equal to
!=
Equal to
not equal to
>
less than or equal
greater than
greater than or equal
less than
>=
less than or equal
greater than
greater than or equal
less than
<
less than or equal
greater than
greater than or equal
less than
<=
less than or equal
greater than
greater than or equal
less than
The logical AND operator (&&) returns true only if both operands are ______
return
zero
false
non-zero
The logical OR operator returns true if any one of the operands is ______
return
zero
false
non-zero
If the given operand is true then the logical NOT operator will make it ______
return
zero
false
non-zero
