PRF Haysai
PRF Haysai
d.EOF indicates that scanf did not fill any address AND encountered an end of data character
which of the following statement are true with regards to the || operator?(select al correct answer)
a.this operator is used to combine two conditional expressions which evaluate to true as a whole only if
either of the two expressions evaluate to true.
what is the incorrect statement about floating-point data types(float and double)?
b.float-point means that the decimal point can float(that is, it can ba placed anywhere relative to the
significant digits)
B. The *** operator is a unary operator and it returns the memory address of the operand
a. The CPU performs the operation on the values stored as operands or on the values stored in the
operand
addresses.
b. An interpreter will iterate to translate each statement of source code into machine code then CPU
execute these
c. Compiler of the language A can translate A-source code into language B-source code then the B-
language
....... helps identifying the device which will communiate with CPU.
b. All
b. The expression x=y; will copy value of the variable y to the variable x.
a. employee salary
d. +ab
e. 45n
Which of these statements about constants are not true?
1. The rule in C is that an else statement always belongs to the innermost if available
2. The rule in C is that an else statement always belongs to the outermost if available
b. as a well program.
d. Walkthrough is a manual process for recording all changes of program variables when the program
executes instruction-by-instruction.
e. A listing of the output, if any, produced by the program is carried out when we do a walkthrough..
a. "logical" - related tasks of which only one is performed - the module identifier suggests a choice
e. If the buffer is empty, the function scanf will wait until the user adds more data values
a. The specifier %hex is used for printing out an integer in hexadecimal format.
Program ....
b. is a simulation of solution.
Character Sequence
b. vertical tab \v
c. backslash \
e. backspace \b
b. An array is stored in contiguously block of memory and each element is identified by its index.
c. The index of an element can be an integer variable, an integer expression or an integer constant.
e. An array is a group of related elements and they belong the same data type.
The linear search algorithm can be applied on an array in which its elements .......
a. It will read all characters until the first white space character.
c. It is usually used when user will enter a word such as the code of a product.
Which of these statements about null byte terminator are not true?
Which of these statements about the %[^ ] specifier is true when it is used in the scanf function ?
a. The scanf function will store the characters read in memory locations starting with the address passed
to scanf
What in the following file operations should be used when the file closed only?
a. renaming a file.
e. remove a file.
a. With text format, the data on the file can be modified using a text editor.
c. With text format, data in a the file are stored as ASCII code of characters.
b. fputc
c. fprintf
f. fputs
Text format is used. Which of these statements about table, record, and fields are not true?
e. A new line delimiter must be used to separate two adjacent fields of a record.
e. Rewinding a file will move current position to the beginning of the file.
Which of these statements about the black-box testing are not true?
b. Each possible path through the code is executed at least once. The number of possibilities to be tested
may be too
great
b. a semantic error