Please select a subject first
Advertisements
Advertisements
What is recursive problem-solving?
Concept: undefined >> undefined
Define factorial of a natural number recursively.
Concept: undefined >> undefined
Advertisements
Power can also be defined recursively as
`"a"^"n" = {(1, "if" "n" = 0), ("a" × "a"^("n" - 1), "if n is odd"), ("a"^("n""/"2) × "a"^("n""/"2), "if n is even"):}`
Construct a recursive algorithm using this definition. How many multiplications are needed to calculate a10?
Concept: undefined >> undefined
A single-square-covered board is a board of 2n x 2n squares in which one square is covered with a single square tile. Show that it is possible to cover this board with triominoes without overlap.
Concept: undefined >> undefined
Which of the following operator is an extraction operator in C++?
Concept: undefined >> undefined
Which of the following statements is not true?
Concept: undefined >> undefined
Which of the following is a valid string literal?
Concept: undefined >> undefined
Which of the following is called compile-time operators?
Concept: undefined >> undefined
Can keywords be used as identifiers?
Concept: undefined >> undefined
The following constant is of which type?
39
Concept: undefined >> undefined
The following constant is of which type?
032
Concept: undefined >> undefined
The following constant is of which type?
0XCAFE
Concept: undefined >> undefined
The following constant is of which type?
04.14
Concept: undefined >> undefined
Write the following real constant into the exponent form:
23.197
Concept: undefined >> undefined
Write the following real constant into the exponent form:
7.214
Concept: undefined >> undefined
Write the following real constant into the exponent form:
0.00005
Concept: undefined >> undefined
Write the following real constant into the exponent form:
0.319
Concept: undefined >> undefined
Assume n = 10; what will be result of n++ and --n;?
Concept: undefined >> undefined
Match the following.
| A | B |
| (a) Modulus | (1) Tokens |
| (b) Separators | (2) Remainder of a division |
| (c) Stream extraction | (3) Punctuators |
| (d) Lexical Units | (4) get from |
Concept: undefined >> undefined
