wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PDM LS01 - Quiz 5 - Files and Menu Driven Programming

Total questions: 15

Worksheet time: 20mins

Name
Class
Date
1.

Programmers usually refer to the process of saving data in a file as “writing data to” the file

a)

TRUE

b)

FALSE

2.

A binary file contains data that has been converted to text

a)

TRUE

b)

FALSE

3.

.dat is an extension example for text file

a)

TRUE

b)

FALSE

4.

Text file is using a scheme such as ASCII or Unicode

a)

TRUE

b)

FALSE

5.

Below are the example pseudocode for writing a file, except

a)

Write exampleFile "BINUS"

b)

Declare String name = "BINUS“

  Write exampleFile name

c)

Declare String name = "BINUS“

 While NOT EOF (Write exampleFile name)

d)

DECLARE name AS STRING

SET name = "BINUS"

WRITE name TO FILE exampleFILE

6.

Before open the file, you need to declare the file name first

a)

TRUE

b)

FALSE

7.

The list of operations that is displayed on the screen is called a menu.

a)

TRUE

b)

FALSE

8.

Please write the pseudocode for menu no. 1

(a)  

9.

Please write the pseudocode for menu no. 2

(a)  

10.

Please write the pseudocode for menu no. 3

(a)  

11.

Please write the pseudocode for menu no. 4

(a)  

12.

Please write the pseudocode for Default

(a)  

13.

What is the meaning of Default option in SELECT CASE?

(a)  

14.

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

a)

TRUE

b)

FALSE

15.

Only SELECT CASE keyword can be used in menu driven programming

a)

TRUE

b)

FALSE