
File handling and procedure

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Eva Wan
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step in file handling?
Opening a file
Writing to a file
Reading from a file
Closing a file
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of a procedure?
To organize code into reusable blocks
To perform calculations
To handle exceptions
To display messages
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the general purpose of file handling in a program?
To store data temporarily
To perform calculations
To permanent storage of data
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a procedure in programming?
a sequence of steps that is given an identifier and can be called to perform a sub-task
A function that returns a value
A class that contains methods
None of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A procedure with no parameters is defined as follows
PROCEDURE <identifier>
<statement(s)>
ENDPROCEDURE
PROCEDURE <identifier>
<statement(s)>
PROCEDURE <identifier>(<param1> , <param2> ...)
<statement(s)>
ENDPROCEDURE
PROCEDURE <identifier>(<param1> : <data type>, <param2> : <data type>...)
<statement(s)>
ENDPROCEDURE
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Function: a sequence of steps that is given an identifier and returns a _____ value; function call is part of an expression
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If a file does not exist, what will happen when you try to read from it?
The program will crash
The file will be created automatically
An error will be raised
Data will be read from another file
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Intro to HTML

Quiz
•
8th - 12th Grade
20 questions
Soal - soal latihan TIK kelas 9 semester 2

Quiz
•
9th Grade
20 questions
Part 1 Advance HTML and CSS

Quiz
•
9th - 12th Grade
20 questions
PH-HTML

Quiz
•
9th - 12th Grade
20 questions
Compuscholar Chapter 6 Exam Review

Quiz
•
9th - 12th Grade
20 questions
4Q Q1 RR L5 Comp 9

Quiz
•
9th Grade
20 questions
MOS Certification Questions

Quiz
•
11th - 12th Grade
22 questions
CSS Dasar

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade