SC23104 Final Examination Computer Science M3
SC23104 Final Examination Computer Science M3
1. Creating simple programs using VB codes that can make decisions when it processes input from
the user, and controls the flow in the process.
2. Identifying codes and statements that control the flow of execution of a program or one of its
sections.
3. Designing programs with user interface that use conditional programming statements.
5. Identifying program loops that instructs a program to perform as task repeatedly, either a
specific number of times or until a condition are met.
***************************************************************************************
________________________ ___________________________
Mr. Christian Salarza Mr. Nikom Chitkong
English Teacher (Foreigner) Head Computer Department
_ _ _
Miss. Hataipat Tarat Lt. Supod Suwinai
Head of Academic Department Deputy Director
_ ____________
Dr. Phongthai Kheereewongwattana
Director
1
Part 1: Multiple choice. Choose the best answer.
1. Which of these is the execution of a number of statements depending on the state of the
program?
1. Repetition Programming 2. Comments
3. End Statement 4. Selection Programming
2. It is the inline documentation that helps to read, reuse and maintain existing code. Which of
the choice is this?
1. Repetition Programming 2. Comments
3. End Statement 4. Selection Programming
3. This is the execution of a statement until the program reaches a certain state or operations are
applied to every element of a collection. Which of the following is this?
1. Repetition Programming 2. Comments
3. End Statement 4. Selection Programming
For numbers 6-8: Select the correct control name as indicated by the arrow.
6.
1. Command 2. Label
3. Checkbox 4. Textbox
7.
1. Command 2. Label
3. Checkbox 4. Textbox
8.
1. Command 2. Label
3. Checkbox 4. Textbox
2
9. Which of the following is used to give a comment in your code?
1. Dim 2. Else
3. Val 4. Rem
10. Which of the following is not included in the three common programming constructs that
Visual Basic supports?
1. Selection 2. Sequence
3. Repetition 4. All of these
11. Which of the following property controls the size of the letters or words in a form?
1. ForeColor 2. Caption
3. Name 4. Font
12. Which property name should you edit if you want to change the name indicated in the
appearance of a command button?
1. ForeColor 2. Caption
3. Name 4. Font
13. Which property name should you edit if you want to change the texts in bold letters?
1. ForeColor 2. Caption
3. Name 4. Font
18. Which of the following is used to collect the value of the data being written in a textbox?
1. Dim 2. Else
3. Val 4. Rem
3
19. Which of the following is not included in the three parts of a DO… Loop
1. Step value 2. Initialization
3. Condition 4. Finalization
21. This refers to any block of statement that repeats itself based on a condition.
1. Nested loop 2. Repetition statement
3. Pre-tested loop 4. Post-tested loop
22. It is the exit controlled loop where the block of statement is executed first then the condition is
evaluated.
1. Nested loop 2. Repetition statement
3. Pre-tested loop 4. Post-tested loop
23. This is the entry controlled loop where the condition is evaluated first and then the block of
statements is executed.
1. Nested loop 2. Repetition statement
3. Pre-tested loop 4. Post-tested loop
24. Which of the following is repeating a program structure until the specified condition is met?
1. Stooping 2. Conditioning
3. Looping 4. Testing
Part 2: Design a program in Visual Basic that meets the following instructions. The finish work
should be saved as form and send to your Google classroom assignment named: “Final
Exam Part 2.”
Output Sample: