2.2 Programming Fundamentals Knowledge Check

2.2 Programming Fundamentals Knowledge Check

9th - 12th Grade

32 Qs

quiz-placeholder

Similar activities

Q3 Quiz

Q3 Quiz

9th Grade

27 Qs

Python Quiz

Python Quiz

12th Grade

30 Qs

College Board AP Computer Science Principles

College Board AP Computer Science Principles

9th - 12th Grade

30 Qs

PLTW CS Principles

PLTW CS Principles

9th - 12th Grade

30 Qs

AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

9th - 12th Grade

30 Qs

JavaScript Scope, Arrays, Loops, and Iterators

JavaScript Scope, Arrays, Loops, and Iterators

9th - 12th Grade

30 Qs

JavaScript

JavaScript

9th - 12th Grade

29 Qs

Nat 5 - Prelim Revision

Nat 5 - Prelim Revision

11th - 12th Grade

36 Qs

2.2 Programming Fundamentals Knowledge Check

2.2 Programming Fundamentals Knowledge Check

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Tom Lund

Used 2+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

.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 • 1 pt

The following is not a valid file open mode:
Delete
Append
Read
Write

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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 • 1 pt

The most appropriate file mode for creating a daily log of entries:
Read
Write
Append
Close

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The following is a valid way to write the contents of a 2D array to a text file:
Concatenate each row to a string with commas and then concatenate all rows with new line characters
Split the text file into an array, copy all elements to this array
Use SQL to convert 2D array to records first

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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 the options are true

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Variable scope refers to:
Variable data type
Variable identifier
Logic errors associated with a variable
The visibility of variables within a program

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?