Verified
b. text files
Program information does not consist of
Select one:
a. Data
b. text files
c. Instructions
c. Primary memory transfers information at lower speed than hard disks
Which of these statements about primary memory is not true?
Select one:
a. Primary memory is also volatile
b. RAM is a primary memory
c. Primary memory transfers information at lower speed than hard disks
d. Primary memory holds the information accessed by the CPU.
a. Each program instruction consists of an operation and operands
Which of these definitions are true about an instruction of a program?
Select one:
a. Each program instruction consists of an operation and operands
b. The addresses are either address names or ROM addresses only
c. Operation code of an instruction was depended on the specific CPU.
d. Each program instruction consists of an arithmetic expression only.
E,a, d,
C language is
Select one or more:
a. Case-sensitive language
b. a perfect language
c. Safe language
d. a powerful language
e. an English-like language
f. a simple language
a. false, false
(1) One byte consists of 4 nibbles.
(2) One nibble consists of 2 consecutive bits
The statement (1) is ...., (2) is .....
Select one:
a. false, false
b. true, true
c. true, false
d. false, true
c. Comments in a program enhance the program readability
Select correct statement(s)
Select one:
a. All of the others.
,b. C-compilers compile all comments
c. Comments in a program enhance the program readability
d. C-compilers treat comments as strings of characters
c. word
The unit of memory within CPU is ............
Select one:
a. byte
b. bit
c. word
d. 2 bytes
e. None of the others.
f. 4 bytes
b. Binary format only
CPU can process intructions in .......
Select one:
a. Text format only.
b. Binary format only
c. Text or binary format.
d. Octal format
e. Hexadecimal format.
b. 1, 3, 2, 4
1- Analyzing , 2- Implementing, 3- Planning, 4- Testing
What is correct order a programmer should follow?
Select one:
a. 1, 2, 3, 4
b. 1, 3, 2, 4
c. 3, 2, 1, 4
d. 3, 1, 2, 4
d. All of the others.
A computer program ........
Select one:
a. is a set of instructions that computer hardware will execute.
b. will increase performance of standard workflow.
c. is a simulation of solution.
d. All of the others.
c. Diamond
In a flowchart, we use a ......... to express a decision.
Select one:
a. Rectangle
b. Polygon
c. Diamond
d. Oval
a. 2, 4
Which of the following statements are true about naming conventions in C language?
1- A name can start with a digit.
2- A name can start with a letter.
,3- A name can start with a dollar symbol.
4- A name can start with an underscore symbol.
Select one:
a. 2, 4
b. 1, 3
c. 1, 2, 3
d. 2, 3, 4
b
What are the right matching?
Character
Sequence
a. Newline \t
b. vertical tab \v
c. backslash \bl
d. alarm
e. backspace \bu
f. question mark \qm
g. None of others
Select one:
a. c
b. b
c. a
d. g
e. d
f. e
g. f
b. pseudo code, flowchart
There are two ways to express an algorithm. They are ......... and ...........
Select one:
a. program, flowchart
b. pseudo code, flowchart
c. program, instructions
d. instructions , flowchart
c. The compiler allocates memory for constants
Which of these statements about integer literal constants are true?
Select one:
a. The compiler does not compile constants
b. The compiler does not allocate memory for constants
c. The compiler allocates memory for constants
d. The compiler embeds constants directly into the program instructions
d. short
Which qualifiers is defined in C language?
Select one:
, a. double
b. complex
c. array
d. short
c. A C statement is terminated by a colon.
Choose incorrect statement(s)
Select one:
a. in C, comment lines are blocked by / and /
b. A C program will start at main() function
c. A C statement is terminated by a colon.
d. A C function is wrapped by curly braces.
c. %d %f
The type character of the int datatype is ........., and the float datatype is .......
Select one:
a. %d %lf
b. %i %s
c. %d %f
d. %d %ld
e. %i %L
a. Store cultural symbols using an integral data type
Which of these statements about cultural symbols is true?
Select one:
a. Store cultural symbols using an integral data type
b. Store a symbol by storing the double associated with the symbol
c. Store cultural symbols using a float data type
a. Magic values and refer to the symbolic names throughout the code
Which of these statements about the magic value are true?
Select one:
a. Magic values and refer to the symbolic names throughout the code
b. All of the others
c. Use #define SYMBOLIC_NAME =value;
d. Use #define_magic to manage idiosyncrasies across platforms
d. The coding style is consistent and clear throughout
A good source program is that:
Select one:
a. A program is written with mix styles
b. Other programmers try him/herself to understand it with significant effort
c. Difficult to read
d. The coding style is consistent and clear throughout
b. if then else
Which of the following is incorrect selection construct?
Select one:
a. ? :
b. if then else
c. switch
d. if else