In: Computer Science
1.Which one of the following statements about refinement and abstraction is TRUE?
Select one:
Abstraction and refinement are the same.
The process of describing more detail about how an instruction
should be carried out is called abstraction.
Abstraction is the hiding of details that are not currently important.
Stepwise refinement is only possible with algorithms and not pseudocode.
Lower level details of how an abstracted algorithm is carried out never have to be written.
2.
What is the data type of the expression ’True’ ?:
Select one:
floating point
floating point
boolean
string
list
3.Which one of the following about data is FALSE?
Select one:
Data can only be in the form of strings.
Data is information.
Computer programs need data to do anything useful.
All input and output is data.
At a low enough level of abstraction, all data is numbers.
1) Third option is the correct answer.
Abstraction is the process of hiding unnecessary details.
First option is incorrect as abstraction and refinement are not the same.
Second option is incorrect as the process of describing more detail about how an instruction should be carried out is not called abstraction. It is the process of hiding unnecessary details.
Fourth option is incorrect as stepwise refinement is possible with both algorithms and pseudocode.
Fifth option is incorrect as lower level details of how an abstracted algorithm is carried out may have to be written.
2) Third option is the correct answer.
Boolean data type can support both the expressions true (1) and false (0).
First option is incorrect as floating point can't be the data type of the expression 'true'.
Second option is incorrect as floating point can't be the data type of the expression 'true'.
Fourth option is incorrect as string can't be the data type of the expression 'true'.
Fifth option is incorrect as list can't be the data type of the expression 'true'.
3) First option is the correct answer.
Data can't only be in the form of strings. It can be in the other forms also.
Second option is incorrect as it is true.
Third option is incorrect as it is true.
Fourth option is incorrect as it is true.
Fifth option is incorrect as it is true.
Please comment in case of any doubt.
Please upvote if this helps.