Font size
WorksheetsPDM LS01 - Quiz 5 - Files and Menu Driven Programming
Total questions: 15
Worksheet time: 20mins
Programmers usually refer to the process of saving data in a file as “writing data to” the file
TRUE
FALSE
A binary file contains data that has been converted to text
TRUE
FALSE
.dat is an extension example for text file
TRUE
FALSE
Text file is using a scheme such as ASCII or Unicode
TRUE
FALSE
Below are the example pseudocode for writing a file, except
Write exampleFile "BINUS"
Declare String name = "BINUS“
Write exampleFile name
Declare String name = "BINUS“
While NOT EOF (Write exampleFile name)
DECLARE name AS STRING
SET name = "BINUS"
WRITE name TO FILE exampleFILE
Before open the file, you need to declare the file name first
TRUE
FALSE
The list of operations that is displayed on the screen is called a menu.
TRUE
FALSE
Please write the pseudocode for menu no. 1
(a)
Please write the pseudocode for menu no. 2
(a)
Please write the pseudocode for menu no. 3
(a)
Please write the pseudocode for menu no. 4
(a)
Please write the pseudocode for Default
(a)
What is the meaning of Default option in SELECT CASE?
(a)
Menu-driven program is typically capable of performing several tasks and allows the user to select the task that he or she wants the program to perform
TRUE
FALSE
Only SELECT CASE keyword can be used in menu driven programming
TRUE
FALSE
