Search Header Logo

GCSE Programming Fundamentals

Authored by Tom Lund

Computers

11th Grade

Used 4+ times

GCSE Programming Fundamentals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

.endOfFile() could be used in:

To indicate the end of a line with a formatting delimiter
Conditional loops when writing to a file
Conditional loops when reading from a file
Destructive overwriting of the file’s data

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

The following is not a valid file open mode:

Delete
Append
Read
Write

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

The following is a correct way to write to a file:

myFile.readLine(variable)
myFile.writeLine(variable)
myFile.AppendAll(variable)
myFile.InsertAll(variable)

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

The most appropriate file mode for creating a daily log of entries:

Read
Write
Append
Close

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Why would you use good code maintainability when writing a program?

Reduces the number of lines of code
Improves how quickly the program runs
Makes code easier to read and debug
All of these options are true

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Variable scope refers to:

Variable data type
Identifier
Logic errors associated with a variable
The visibility of variables within a program

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

The advantages of parameter passing don’t include this:

The same subprogram can be reused in more cases
Makes it easier to use global variables
More flexible coding
Can cut down on the use of wasteful global variables

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?