2.2 Programming Fundamentals Knowledge Check

2.2 Programming Fundamentals Knowledge Check

9th - 12th Grade

32 Qs

quiz-placeholder

Similar activities

Python Unit 8 - Intro to Classes

Python Unit 8 - Intro to Classes

6th - 9th Grade

30 Qs

Pemrograman Web - Dasar PHP

Pemrograman Web - Dasar PHP

12th Grade

30 Qs

Software DD and Hacking

Software DD and Hacking

11th Grade

30 Qs

Algorithmic Thinking

Algorithmic Thinking

9th - 10th Grade

30 Qs

PLTW Activity 1.1.1

PLTW Activity 1.1.1

9th - 10th Grade

27 Qs

CS Unit 10 Data Types Key words

CS Unit 10 Data Types Key words

12th Grade

35 Qs

PHP MySQL Quiz

PHP MySQL Quiz

12th Grade

28 Qs

Python Lists

Python Lists

9th - 12th Grade

27 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?