The code segment below is intended to swap the values of the variables first and second using a temporary variable, temp.
temp <- first
first <- second
Which of the following can be used to replace

2018 MCQ

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

42 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
second <- temp
2.
FLASHCARD QUESTION
Front
A bank customer receives an e-mail from a sender claiming to be a bank employee. The e-mail asks the customer to provide personal information and to call a phone number if he or she has any questions. The customer suspects the e-mail might be a phishing attempt. Which of the following responses is most likely to be a privacy risk for the bank customer? A) Calling the bank at its official phone number to ask whether the request for personal information is legitimate B) Calling the phone number given in the e-mail and providing the personal information over the phone C) Checking that the domain name of the sender’s e-mail address is associated with the bank D) Conducting a Web search to see if other people have received similar requests for personal information
Back
Calling the phone number given in the e-mail and providing the personal information over the phone.
3.
FLASHCARD QUESTION
Front
Which of the following would be the best use of citizen science? A An experiment that requires all participants to be working in the same laboratory, B An experiment that requires expensive equipment to conduct, C An experiment that requires data measurements to be taken in many different locations, D An experiment that requires specialized knowledge and training to conduct
Back
An experiment that requires data measurements to be taken in many different locations.
4.
FLASHCARD QUESTION
Front
A student is writing a program to model different real-world events using simulations. Which of the following simulations will generate a result that would best be stored using a Boolean variable? A simulation of flipping a fair coin, A simulation of rolling a fair die (with sides numbered 1 through 6), A simulation of the temperature in a location over time, A simulation of traffic patterns on a road
Back
A simulation of flipping a fair coin
5.
FLASHCARD QUESTION
Front
5
Options:
a
b
c
d
Back
c
6.
FLASHCARD QUESTION
Front
Which of the following best describes the role of the Internet Engineering Task Force (IETF)?
Options: Developing standards and protocols for Internet communication, Preventing copyrighted materials from being illegally distributed online, Preventing malicious software from being distributed online, Verifying the ownership of encrypted keys used in secured messages
Back
Developing standards and protocols for Internet communication
7.
FLASHCARD QUESTION
Front
Consider the following program, which uses the variables star, end, and current.
start <- 1
end <- 20
current <- 3
start <- current
current <- current + 1
DISPLAY (start)
DISPLAY (current)
What is displayed as a result of executing the program?
Back
3 4
Create a free account and access millions of resources
Similar Resources on Quizizz
37 questions
Advanced Robotics Semester Review

Flashcard
•
KG - University
34 questions
Computer Science I Midterm Review (AKHS)

Flashcard
•
9th - 12th Grade
41 questions
APCSA - Units 1-5 Review with Holiday Trivia

Flashcard
•
9th - 12th Grade
33 questions
Java Programming Fundamentals Flashcard

Flashcard
•
9th - 12th Grade
36 questions
Intro to CS Final 2024

Flashcard
•
9th - 12th Grade
37 questions
AP CSP Pseudocode Assessment

Flashcard
•
9th - 12th Grade
39 questions
AP CSP | Conditionals Review

Flashcard
•
9th - 12th Grade
37 questions
AP CSP Exam Review

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
EOC Math 1 Review

Quiz
•
9th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
MCAS Biology Review

Quiz
•
9th - 10th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
20 questions
Math 1 EOC Review

Quiz
•
9th Grade