
PRG1 - Day 4 starter
Authored by Steve Rich
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is output?
// JavaScript
console.log(examResults.steve[0]);
# Python
print(exam_results['steve'][0])
[ 99, 98, 95 ]
99
[ ]
Undefined / Error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
JS: What does trim() do?
Python: What does .strip() do?
It extracts a substring from a string.
It removes all characters from a string.
It converts a string to title case.
It trims whitespace from the beginning and end of a string.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you convert a string to lowercase?
Python: .to_lower()
JS: toLower()
Py: .make_lower()
JS: makeLower()
Py: .convert_lower()
JS: convertLower()
Py: .lower()
JS: toLowerCase()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method can be used to split a string into an array of substrings based on a specified delimiter?
.slice()
.concat()
.join()
.split()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is output?
Py: print(98 in exam_results["violet"])
JS: console.log(examResults.violet.includes(98));
True
False
Error
98
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python & JS, can a variable name (also known as an 'identifier') start with a number? e.g. 5rings
Yes
No
Sometimes
Only in certain versions
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
JS: bigMac.Fat = 30;
Py: big_mac['Fat'] = 30
Sets the fat content of a Big Mac to 30.
Deletes the fat content of a Big Mac.
Calculates the calories of a Big Mac.
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?
Similar Resources on Wayground
10 questions
Computer Networks quiz
Quiz
•
University
10 questions
B1-Base_réseau
Quiz
•
University
10 questions
CSE205-DCN-QUIZ-UNIT-5
Quiz
•
University
11 questions
SIM - Infrastructure
Quiz
•
University
10 questions
Latihan Soal Ms. Word
Quiz
•
University
10 questions
tkinter quiz
Quiz
•
University
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
10 questions
Online scams
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University