Comp Sci Unit 3.b
Quiz
•
Computers
•
11th Grade
•
Easy
Nicholas Nessralla
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A school is developing a program to keep track of information about students and their class schedules. In which of the following instances would a data abstraction be most helpful?
The program includes individual variables to store the names of each student rather than a single list of students.
A program includes multiple comments that could be combined into a single comment
A program includes repeated programming statements that could be moved inside a loop
A program includes repeated code that could be moved inside a function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var list = [10, 5, 15]; for(var i = 0; <INSERT CODE>; i++){ console.log(list[i]); }
Which of the following will result in ONLY all the items in list being printed to the console if placed where the program reads <INSERT CODE> and the program is run?
i < list[list.length]
i < list.length
i < list[0]
i < list[1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"]
wordList[0] = wordList[2]
wordList[2] = wordList[0]
insertItem(wordList, 0, "air")
removeItem(wordList,0)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed in the console when this program runs?
var numList = [10,20,30]; console.log(numList[numList.length-1]);
2
3
20
30
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed when this program finishes running?
var numbersList = [20, 10, 5] appendItem(numbersList, 50) appendItem(numbersList,100) removeItem(numbersList,1) insertItem(numbersList, 0, 30) console.log(numbersList.length)
3
6
7
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed in the console when the following program runs?
var count = 0 while (count != 5){ console.log(count); count = count + 2; }
0 2 4 6
0 2 4
2 4 6
The program will result in an infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program display in the console?
for(var i = 0; i < 4; i++){ console.log(i); }
0 1 2 3
0 1 2 3 4
1 2 3
1 2 3 4
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
IMedia Recap
Quiz
•
9th - 11th Grade
10 questions
BTEC modern technologies
Quiz
•
11th Grade
10 questions
แบบทดสอบก่อนเรียน เรื่อง การตกแต่งเว็บไซต์ด้วย CSS
Quiz
•
10th - 12th Grade
19 questions
Unit 6 - lesson 2 Network Topology
Quiz
•
10th - 12th Grade
10 questions
A Level - Data Structures 1
Quiz
•
11th Grade
10 questions
บทที่ 1 ข้อมูลมีคุณค่า
Quiz
•
9th - 12th Grade
10 questions
IGCSE Comp Sci - Security revision
Quiz
•
9th - 11th Grade
10 questions
CALL: TOEFL EXERCISE 17
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
