
Programming Fundamentals Part 2
Authored by Tracy Mayhead
Computers
9th - 11th Grade
Used 29+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the string returned by this code?
phrase = "Character"
phrase.subString(0,4)
"hara"
"cter"
"Cha"
"Char"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the result of the following query on the this database table?
SELECT Name FROM Students WHERE House = "King" AND Year = "9"
["Ted","King",9,"D"]
"Ted"
"Poppy"
"Sam"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the result of this SQL query on the database table shown?
SELECT * FROM Students WHERE Grade = "C" AND House= "Curie"
"Cher"
["Poppy","King",8,"C"]
"Sam"
["Sam","Curie",7,"C"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure would be suitable for storing a single list of values such as the wind speeds measured over a week?
Table
2-dimensional array
1-dimensional array
Record
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL command is used to view or query a database?
CHOOSE
FIND
SELECT
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add data to an open file from variables or data structures in memory is what file operation?
Close
Write
Open
Read
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What file operation would this command initiate?
myFile = open("sample.txt")
Open
Read
Close
Write
Append
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?