WorksheetsBig CSP EOC Review
Total questions: 194
Worksheet time: 2hrs 17mins
What is an Event?
An action that causes something to happen
An action that doesn’t do anything in the App
An action that will allow you to look up and event
Something that is happening in the calendar
I. Programs written in a high-level language are generally easier for people to read than programs written in a low-level language.
II. A high-level language provides programmers with more abstractions than a low-level language.
III. Programs written in a high-level language are generally easier to debug than programs written in a low-level language.
Consider the following numbers. Binary 1100, Decimal 11, and Hexadecimal D. Which of the following lists the numbers in order from least to greatest?
Binary 1100, Decimal 11, Hexadecimal D
Decimal 11, Binary 1100, Hexadecimal D
Decimal 11, Hexadecimal D, Binary 1100
Hexadecimal D, Decimal 11, Binary 1100
Which of the following would pose the greatest threat to a user’s personal privacy if it were to be leaked to the public?
The IP address of the user’s computer
The user’s browser cookies
The user’s email address
The user’s private key used for encryption
Consider the process of encoding and decoding a message using the following Caesar cipher encoding scheme in which the plaintext and ciphertext alphabets are offset by four positions, as shown above.
Which of the following encoded ciphertext strings decodes to an original plaintext message of “secret”?
ersecr
wigvix
kwujwl
oaynap
According to Moore’s Law, increases in technological performance should approximately double every year? If this holds true, how much can performance be expected to increase over 5 years?
10 times as much
100 times as much
32 times as much
16 times as much
What is the decimal equivalent of 11010011?
211
210
209
208
What does HTTP stand for?
Hypertalk Talking Protocol
HyperText Transmission Protocol
Hypertext Transferable Protocol
HyperText Transfer Protocol
What does len() do?
It stops the list from continuing
It adds up everything in the list
It counts the amount of values in the list
None of the above
What is % in Python?
Square Root
Modulus
Add
Square Root
What is the RGB value of red?
(255,0,0)
(255,0,255)
(255,255,0)
(0,0,255)
How do you insert "yes.jpg" in HTML?
<img scr = "yes.jpg">
<img src = "yes.jpg">
<img scr = "yes.jpg">
<igm scr = "yes.jpg">
An Internet attack that causes a server to crash by making repeated requests to the same IP address:
DDoS (Distributed Denial of Service)
Cache Poisoning
DNS (Domain Name System) Hijacking
Phishing
Internet Protocol
Protocol that breaks data down into packets and addresses them with source and destination information
A DNS attack in which numerous pings are made to the same IP, causing it to crash
Protocol used by the World Wide Web. It describes how messages are formatted and interchanged, and how web servers respond to commands.
Protocol that provides reliable, ordered, and error-checked delivery of a stream of packets on the internet
A _____ HTTP request is used when the user enters information (ex. user name/password) into the webpage.
Get
Post
Login
Send
HTTP
Protocol used to check if all packets of data have been received
Protocol for relaying packets across an interconnected network (Internet)
Protocol used by web browsers to communicate with the web server and fetch the webpages that you see
A cryptographic protocol used to securely transmit data over an unsecured network
How many bits are in an IPV4 address?
32
64
128
256
What two numbers do we use in binary?
-1 & 0
2 & 1
1 & 0
4 & 0
What number does 110 represent in binary?
6
3
8
12
How would you represent the number 5 in binary?
10
100
101
110
What base is binary in?
2
4
1
7
The following program is run. Then the user NEVER clicks the “homeButton” button. What will be displayed in the console?
1 2 3
1 3
1 3 2 2
3 2 1
The following program is run. Then the user clicks the “homeButton” button TWICE. What will be displayed in the console?
1 2 3
1 3
1 3 2 2
3 2 1
I am enjoying this Quizizz...
Very Very Much ! ! !
Very Much ! !
Much !
Not at All
What color is represented by (0, 150, 0)?
Blue
Green
Yellow
Red
What is displayed to the console log?
$10
$ 10
$10.00
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
2
True
False
True
False
A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?
The song was saved using fewer bits per second than the original song.
The song was saved using more bits per second than the original song.
The song was saved using a lossless compression technique.
Some information is lost every time a file is saved from one location on a computer to another location.
For which of the following lists can a binary search be used to search for an item in the list?
I only
III only
I and III only
I, II, and III
Which of the following school policies is most likely to have a positive impact on the digital divide?
A school allows students to bring a graphing calculator from home to complete in-class mathematics assignments.
A school allows students to bring a tablet computer to class every day to participate in graded quizzes.
A school provides a laptop or tablet computer to all students enrolled at the school.
A school recommends that all students purchase a computer with as much processing speed as possible so that projects run faster.
An online store uses 6-bit binary sequences to identify each unique item for sale. The store plans to increase the number of items it sells and is considering using 7-bit binary sequences. Which of the following best describes the result of using 7-bit sequences instead of 6-bit sequences?
2 more items can be uniquely identified.
10 more items can be uniquely identified.
2 times as many items can be uniquely identified.
10 times as many items can be uniquely identified.
An algorithm has been developed to compute the sum of all the elements in a list of integers. Which of the following programming structures must be added to the existing algorithm so that the new algorithm computes the sum of only the even integers in the list?
Iteration
Searching
Selection
Sequencing
Over winter break I plan to ...
Consider the following code segment to the left.
Which of the variables have the value 50 after executing the code segment?
x only
y only
x and z only
x, y, and z
Consider the following code segment to the left.
What is the value of r as a result of executing the code segment?
10
20
30
40
The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age ?
Boolean
integer
float
string
list
A student is creating an algorithm to display the distance between the numbers num1 and num2 on a number line. The following table shows the distance for several different values.
Which of the following algorithms displays the correct distance for all possible values of num1 and num2 ?
Step 1:
Add num1 and num2 and store the result in the variable sum.
Step 2: Take the absolute value of sum and display the result.
Step 1:
Subtract num1 from num2 and store the result in the variable diff.
Step 2:
Take the absolute value of diff and display the result.
Step 1:
Take the absolute value of num1 and store it in the variable absNum1.
Step 2:
Take the absolute value of num2 and store it in the variable absNum2.
Step 3:
Add absNum1 and absNum2 and display the result.
Step 1:
Take the absolute value of num1 and store it in the variable absNum1.
Step 2:
Take the absolute value of num2 and store it in the variable absNum2.
Step 3:
Subtract absNum1 from absNum2 and display the result.
Three words are stored in the variables word1, word2, and word3. The values of the variables are to be updated as shown in the following table.
Which of the following code segments can be used to update the values of the variables as shown in the table?
temp ← word1
word3 ← word1
word1 ← temp
temp ← word1
word1 ← word3
word3 ← temp
temp ← word1
word1 ← word2
word2 ← word3
word3 ← temp
temp ← word3
word3 ← word2
word2 ← word1
word1 ← temp
Consider the following procedures for string manipulation.
The variable initials is to be assigned a string consisting of the first letter of the string firstName followed by the first letter of the string lastName. Which of the following assigns the correct string to initials ?
initials ← concat(prefix(firstName, 1), prefix(lastName, 1))
initials ← concat(prefix(firstName, 2), prefix(lastName, 2))
initials ← prefix(concat(firstName, lastName), 1)
initials ← prefix(concat(firstName, lastName), 2)
To qualify for a particular scholarship, a student must have an overall grade point average of 3.0 or above and must have a science grade point average of over 3.2. Let overallGPA represent a student’s overall grade point average and let scienceGPA represent the student’s science grade point average. Which of the following expressions evaluates to true if the student is eligible for the scholarship and evaluates to false otherwise?
(overallGPA > 3.0) AND (scienceGPA > 3.2)
(overallGPA > 3.0) AND (scienceGPA ≥ 3.2)
(overallGPA ≥ 3.0) AND (scienceGPA > 3.2)
(overallGPA ≥ 3.0) AND (scienceGPA ≥ 3.2)
A programmer is creating an algorithm that will be used to turn on the motor to open the gate in a parking garage. The specifications for the algorithm are as follows.
The gate should not open when the time is outside of business hours.
The motor should not turn on unless the gate sensor is activated.
The motor should not turn on if the gate is already open.
Which of the following algorithms can be used to open the gate under the appropriate conditions?
Check if the time is outside of business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is closed. If it is, turn on the motor.
Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is open. If it is, turn on the motor.
Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is not, check if the gate is open. If it is not, turn on the motor.
Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is open. If it is not, turn on the motor.
Three teams (Team A, Team B, and Team C) are participating in a trivia contest. Let scoreA represent the number of correct questions for Team A, scoreB represent the number of correct questions for Team B, and scoreC represent the number of correct questions for Team C. Assuming no two teams get the same number of correct questions, which of the following code segments correctly displays the team with the highest number of correct questions?
Consider the following code segment.
If the value of score1 is 350 and the value of score2 is 210, what will be the value of result after the code segment is executed?
3
4
5
7
Which unit is the largest?
Megabyte
Terabyte
Gigabyte
Kilobyte
An artist makes an RGB raster image in which each pixel color is encoded with 12-bits --- 4 bits each for red, green and blue.Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation.
F00
00F
FF00
FF0000
Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?
1,000 times bigger
100,000 times bigger
1,000,000 times bigger
1,000,000,000 times bigger
Approximately 1,000 ________ are equal to 1 terabyte (1 TB).
jengabytes
gigglebytes
gigabytes
megabytes
Which of the following is a reason to use lossy compression?
You want the compressed file to be larger than the original.
You want the highest quality audio file possible, with no modifications.
You want the highest quality image file possible, with no modifications.
You want to save space and are not concerned if the file is the highest quality possible.
a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible
Lossless Compression
Heuristic
Lossy Compression
encryption
Which of the following is irreversible?
lossy compression
lossless compression
abstraction
RLI
Which of the file types is an audiofile type?
jpg
mp3
png
csv
An original file is 100 MB, it is compressed to 80 MB (including dictionary). What is its compression rate?
90%
80%
20%
100%
Which of the following hexadecimal representations would represent dark green?
#191399
#00FF10
#001313
#001300
How would you lighten the color #bcc8e1?
+50 to each color component
+50 to the red component
-50 to each color component
-50 to the red component
How many bits are needed to represent 8 colors?
8 bits
24 bits
1 hex digit
3 bits
How many bits are needed to represent a 3 x 3 black and white image (exclude metadata)
3 bits
6 bits
9 bits
9 x 24 bits
The color widget uses 3 bytes of metadata. The first two bytes indicate the width and height of the image. The next byte indicates the number of bits that will be used to represent color. How many bits is used to represent color given the metadata (in binary) 00001000 00001000 0001001
3 bits
6 bits
9 bits
12 bits
Which of the following statements is FALSE?
The computer stores colors in hexadecimal
Every color has 3 components. A red, green and a blue component.
A bright color would be represented by a large number.
A computer uses 3 bytes to store a single colored pixel.
Lil’ Nibble, a local Soundcloud rapper, has recorded a new mixtape called “Half-a-byte,” produced by “Mibikibi and the Teraflops.” The mixtape has several audio files that have been compressed into a .ZIP file so they can be transferred easily and a separate .ZIP file containing album artwork and liner notes. If the mixtape .ZIP file takes up 800 MB and the artwork .ZIP file is 300 MB, what size flash drive do you need in order to transfer the files?
512 MB
1.0 GB
4 KB
2.0 GB
Consider the following three binary numbers:
01010
010000
1110
Which of the following lists the numbers in order from least to greatest?
010000
1110
01010
01010
1110
010000
01010
010000
1110
1110
01010
010000
The image is from Google Trends that plots Cats and Dogs.
Choose the most accurate description of what this data is actually showing based on what you know about how Google Trends works.
People like dogs more than cats
People search for "dogs" more frequently than "cats"
There was a sharp increase in the dog population sometime between 2014 and 2015
The popularity of dogs as pets is slightly increasing over time, while the popularity of cats is relatively flat
What is metadata?
Data that is about the data.
Data that is everywhere.
Data that can change.
Data that needs filtered.
Recognizing patterns and similarities in data visualizations relates to which of the following about the data?
Causation
Correlation
Metadata
Filtering
Which of the following is NOT a benefit of metadata?
It can be changed without impacting the primary data
Used for sorting and filtering information
Increases effective use of data by providing extra information
Increases search speeds of the database
Which of the following is NOT a reason for data to be cleaned?
Data is incomplete
Data is invalid
Multiple tables are combined into one
Data is a string
What is the goal of the data analysis process?
To search through databases quicker
To gain insight into new information
To make sure datasets are clean
To collect the correct information
The mayor of a city is interested in learning what goals are most important for residents of the city. Members of her staff visit one of the many neighborhoods in the city and ask 20 residents to fill out a survey. The mayor is concerned that the survey may be biased and not accurately reflect the overall interests in her town. Which of the following strategies is MOST likely to address concerns about the data being biased or inaccurate
Finding the same people surveyed previously to ask more detailed questions.
Visiting the same neighborhood to collect more survey responses
Visiting multiple new neighborhoods to collect more survey responses
Having her staff collect the data using an app rather than paper surveys
In which of the following situations would parallel systems MOST likely be used to help analyze data?
Data analysis involving two or more columns of data
Data analysis involving both string and numeric data
Data analysis involving large datasets
Data analysis that could result in two or more different types of visualizations
Which of the following conclusions is BEST supported by the histogram chart?
More than half of all states are larger than 100,000 square miles
More than half of all states are smaller than 50,000 square miles
Some states are larger than 200,000 square miles
The most common size of states is between 50,000 and 100,000 square miles
A restaurant is interested in learning about the food preferences of people living nearby to the restaurant and intends to use survey data to help decide which new items to add to the menu. Which of the following is LEAST likely to be part of the process used to analyze the data?
Cleaning a data visualization to remove unwanted patterns
Iteratively creating visualizations to ask and answer new questions
Cleaning data to remove inconsistencies
Filtering the data to look at the responses from only certain groups
A town decides to publicize data it has collected about electricity usage around the city. The data is freely available for all to use and analyze in the hopes that it is possible to identify more efficient energy usage strategies.
Which of the following does this situation best demonstrate?
Citizen science
Crowdfunding
Open data
Machine Learning
A series of algorithms that endeavors to recognize underlying relationships in a set of data through a process that mimics the way the human brain operates.
Data Training
Neural Networks
Algorithmic Modeling
Citizen Science
Which of the following works best when you want to visualize one column with few values?
Histograms
Scatter Plot
Bar Charts
Crosstab
Which of the following works best when you want to visualize multiple columns with many values?
Histograms
Scatter Plot
Bar Charts
Crosstab
A team of researchers wants to create a program to analyze the amount of pollution reported in roughly 3,000 counties across the United States. The program is intended to combine county data sets and then process the data. Which of the following is most likely to be a challenge in creating the program?
A computer program cannot combine data from different files.
Different counties may organize data in different ways.
The number of counties is too large for the program to process.
The total number of rows of data is too large for the program to process.
A camera mounted on the dashboard of a car captures an image of the view from the driver’s seat every second. Each image is stored as data. Along with each image, the camera also captures and stores the car’s speed, the date and time, and the car’s GPS location as metadata. Which of the following can best be determined using only the data and none of the metadata?
The average number of hours per day that the car is in use
The car’s average speed on a particular day
The distance the car traveled on a particular day
The number of bicycles the car passed on a particular day
Which of the following applications is most likely to benefit from the use of crowdsourcing?
An application that allows users to convert measurement units (e.g., inches to centimeters, ounces to liters)
An application that allows users to purchase tickets for a local museum
An application that allows users to compress the pictures on their devices to optimize storage space
An application that allows users to view descriptions and photographs of local landmarks
A mobile application is used to display local traffic conditions. Which of the following features of the application best exemplifies the use of crowdsourcing?
Users can save an address to be used at a later time.
Users can turn on alerts to be notified about traffic accidents.
Users can submit updates on local traffic conditions in real time.
Users can use the application to avoid heavily congested areas.
Research where some of the data collection is done by members of the public using own computing devices which leads to solving scientific problems
Open Data
Crowd Sourcing
Citizen Science
Big Data
Data that is publicly available and shared by governments, organizations, and others.
Crowd Sourcing
Citizen Science
Open Data
Big Data
Cloud computing or parallel systems are sometimes used to help process this type of data.
Open Data
Big Data
Crowd Sourcing
Citizen Science
Reorder the following
Ask Questions
Collect Choose Data
Clean Filter Data
Visualize Data
Generate New information
A new or improved idea, device, product, etc, or the development thereof.
Innovation
Technology
Improvement
Protocol
A way of representing information using only two options.
BInary
Doubled
Algorithm
Hexadecimal
A contraction of "Binary Digit"; the single unit of information in a computer, typically represented as a 0 or 1
Bit
Character
BInar
BiDig
Transmission capacity measure by bit rate
Brandwidth
Latency
Bit Length
Transmission Rate
The number of bits that are conveyed or processed per unit of time. e.g. 8 bits/sec.
Bit Rate
Bit Speed
Latency
BPS
Time it takes for a bit to travel from its sender to its receiver.
Latency
Bit Rate
Bit Speed
BPS
A set of rules governing the exchange or transmission of data between devices.
Protocol
Guideline
Packet
Command
American Standard Code for Information Interchange; the universally recognized raw text
ASCII
USACII
QWERTY
IETF
Instructions for a computer.
Code
Comand
Protocol
Direction
Internet Engineering Task Force - develops and promotes voluntary Internet standards
IETF
IT
MIT
Net Neutrality
A group of computers and servers that are connected to each other.
Internet
Packets
Online Network
The principle that all Internet traffic should be treated equally by Internet Service Providers.
Net Neutrality
Network Redundancy
Internet Equality
Online Protocol
A number assigned to any item that is connected to the Internet.
IP Adress
Network Coefficient
Online Password
Router Code
Small chunks of information that have been carefully formed from larger chunks of information.
Packets
Clusters
Superunits
Subunits
Having multiple backups to ensure reliability during cases of high usage
Network Redundancy
Net Neutrality
Internet Support
Online Backup
A type of computer that forwards data across a network
Router
WiFi Station
Interlocutor
Reciever
Provides reliable, ordered, and error-checked delivery of a stream of packets on the internet.
TCP
DNS
IP
URL
The service that translates URLs to IP addresses.
DNS
TCP
HTTP
TCP/IP
The protocol used for transmitting web pages over the Internet
HTTP
DNS
URL
IP Adress
A number assigned to any item that is connected to the Internet.
IP Adress
URL
Link
HTTP
An Internet attack that causes a server to crash by making repeated requests to the same IP address:
DDoS (Distributed Denial of Service)
Cache Poisoning
DNS (Domain Name System) Hijacking
Phishing
Internet Protocol
Protocol that breaks data down into packets and addresses them with source and destination information
A DNS attack in which numerous pings are made to the same IP, causing it to crash
Protocol used by the World Wide Web. It describes how messages are formatted and interchanged, and how web servers respond to commands.
Protocol that provides reliable, ordered, and error-checked delivery of a stream of packets on the internet
A _____ HTTP request is used when the user enters information (ex. user name/password) into the webpage.
Get
Post
Login
Send
A number assigned to any item that is connected to the Internet.
IP Adress
Network Coefficient
Online Password
Router Code
Small chunks of information that have been carefully formed from larger chunks of information.
Packets
Clusters
Superunits
Subunits
Having multiple backups to ensure reliability during cases of high usage
Network Redundancy
Net Neutrality
Internet Support
Online Backup
A type of computer that forwards data across a network
Router
WiFi Station
Interlocutor
Reciever
The service that translates URLs to IP addresses.
DNS
TCP
HTTP
TCP/IP
Bandwidth
Time it takes for a bit to travel from its sender to its receiver.
Transmission capacity measure by bit rate
American Standard Code for Information Interchange; the universally recognized raw text format that any computer can understand
The number of bits that are conveyed or processed per unit of time. e.g. 8 bits/sec.
What will the following algorithm display?
a ← 13
b ← 17
a ← a + 1
c ← a/7
DISPLAY(c)
DISPLAY(a)
DISPLAY(b)
2, 14, 17
13, 17, 5
2, 12, 2
14, 17, 2
What will the following algorithm display?
a ← 13
a ← 17
a ← a+1
DISPLAY(a)
13
17
18
19
What will the following algorithm display?
a ← 11
a ← a + 35
a ← a + 6
a ← a MOD 2
a ← a x b
DISPLAY (a)
0
42
84
126
Extra Credit: Before deciding on a Hedgehog, Sega originally planned to make Sonic a...
rabbit
goose
cat
dinosaur
What will the following display?
a ← "Milk"
a ← "Cookies Soda"
a ← "Chips"
b ← a + "put them in a bag so they stay crisp"
Milk
Milk Cookies Soda
Put them in a bag so they crisp
Milk Cookies Soda Chips put them in a bag so they stay crisp
What is the value displayed after the program is run?
a ← 8
b ← 3
c ← 2
a ← b * c
c ← c+4
display "a"
display (c)
a 8
a 6
8 6
16 4
What is the value displayed after the program is run?
a ← 8
b ← 3
c ← 2
a ← b*c
c ← c+4
DISPLAY("a")
DISPLAY("c")
a 8
a c
8 6
16 4
What will the following algorithm display?
a ← 26 MOD 2
26
13
0
1
What will the following algorithm display?
a ← 5 MOD 2
DISPLAY (a)
26
13
0
1
What will the following algorithm display?
a ← 8 MOD 26
display(a)
26
13
8
1
Extra Credit: Before deciding on the name "Sonic", the original name of the character was
Speedy
Mach
Mr. Needlemouse
Gus
What will the following algorithm display?
a ← 13 MOD 26
display(a)
26
13
8
0
What will the following algorithm display?
a ←26 MOD 13
display(a)
26
13
8
0
What will the following algorithm display?
a ←26 MOD 3
b ←7 MOD a
display (b)
26
13
0
1
What will the following algorithm display?
a ←2 MOD 3
b ←7 MOD a
display (b)
26
13
0
1
What will the following segment display?
a ← 13
b ← 5
temp ← a
a ← b
b ← temp
display (a)
display (b)
13 5
5 13
a b
13 13
What is the percentage that this algorithm displays true?
Display(RANDOM(1, 10) = 6)
9
10
60
100
What is the percentage that this algorithm displays true?
DISPLAY(random(5,9) = 6)
10
20
60
100
Extra Credit: Sonic's footwear was inspired by...
Michael Jordan
Michael Jackson
Mickey Mouse
Wreck-it-Ralph
What is the percentage that this algorithm displays true?
DISPLAY (RANDOM(5,9) = 4)
0
20
60
100
What is the percentage that this algorithm displays true?
DISPLAY(RANDOM(5,9) ≤ 9)
0
20
60
100
What is the percentage that this algorithm displays true?
DISPLAY(RANDOM(5,9)>9)
0
20
60
100
What is the percentage that this algorithm displays true?
DISPLAY(RANDOM(1, 10) ≤6
9
10
60
100
Assume that the two variables age and day have been initialized with the values shown.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
(age > 10) && (age < 20)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!(age > 10)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
(day == "Tuesday") || (age < 12)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!((age == 16) || (day == "Monday"))
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!((age == 16) && !(day == "Monday"))
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age == 16) && (day == "Monday")) && (day == "Tuesday")
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age == 16) && (day == "Monday")) || (day == "Tuesday")
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age > 10) && ((age + 5) > 20))
true
false
