Intro Digital Technology QUIZ
What is the proper operator for "not equals" in JavaScript?
!=
What symbol represents the and operator in JavaScript?
&&
CC BY-ND
(Attribution Non- Edit)
CC BY-NC-ND
(Attribution-Non Commercial-No edit)
What symbol do you use to do multiplication in JavaScript?
*
Why is it important that you cite your sources?
-It gives credit to the authors of the sources you used -It provides your reader with more information about your sources -It shows your credibility -It prevents plagiarism!
What symbol do you use to do division in JavaScript?
/
How many times should you call the start function in a program?
0
How many times should the start function be defined in a program?
1
In the following code, what will be the last number to print to the screen before the program finishes? for (var i = 0; i < 10; i++) { if (i % 2 == 0) { println(i); } else { println(2 * i); } }
18 because In this for loop, i will go from 0 to 9. So on the last run of the loop, i will have the value of 9. Since 9 is odd, i % 2 == 0 will be false, and the else statement will execute, causing 2 * i, or 18, to be printed
How many times should Karel turn left in order to turn right?
3
How many times will the following code print "hello"? for (var i = 0; i < 8; i += 2) { println("hello"); }
4
What code will print to the screen? println(2 + 2);
4
How many times will the following code print "hello"? for (var i = 3; i < 8; i++) { println("hello"); }
5
How many times will the following program print "hello"? for (var i = 0; i < 5; i++) { println("hello"); }
5
What is the proper way to compare if two values are equal in a boolean expression in JavaScript?
==
Which is an avenue in a Karel world?
A column
what is a street in a Karel world?
A row
What is a code comment?
A way to give notes to the reader to explain what your code is doing.
How does the post build a positive digital footprint?
A. Set your privacy settings B. Consider your future: When applying for jobs or promotions, employers may search for information online. C. Posting positively online
When creating passwords for sites and apps, it's important for us to look at what the site requires in terms of password strength. Which shows that the site or app may not have strong enough rules for creating passwords?
A. The number of characters required is very low or there is no minimum defined at all. B. Special characters are not allowed to be used in the password. C. The company or organization sends your credentials (username and password) via email at any time, but especially on sign up. D. The company or organization emails a new password. E. The company or organization does not confirm your old password before allowing you to change it.
Which of the following lists the types of copyright license from most restrictive to least restrictive?
All Rights Reserved, Some Rights Reserved, Public Domain
Give an example of a social media post that builds a negative digital footprint.
An example of a social media post that builds a negative digital footprint would be saying something negative.
Give an example of a social media post that builds a positive digital footprint.
An example of a social media post that builds a positive digital footprint would be something positive about you can meet new friends.
CC BY-SA
Attribution- share alike; you can share as long as you apply same license
CC BY-NC-SA
Attribution-Non Commercial-Share Alike
CC BY
Attribution. Everyone can use my content but just give ME credit. You can modify.
Type of programming language translates the entire code before running any of the instructions/steps?
Compiled
What do we use control structures for in JavaScript?
Control the flow of the program; how the commands execute.
Why is it important to follow copyright license rules?
Copyright rules are essential to those who create original work. It protects their creations from being used without their permission
What is the meaning of quote, Every teacher can become their own data scientist and know in their own classroom what's working and what's not?
Every teacher has enough data about their students to know students learn because of technology.
True or False. The information about a particular person that exists on the Internet is a result of only a portion of their online activity. Some things don't matter or are not part of a person's digital footprint.
FALSE
True or False: It is legal to practice hacking public websites as long as you are a student learning about cybersecurity
FALSE
TRUE OF FALSE By checking the box on a privacy policy page, a company can legally use your data and information in all the ways disclosed, no matter what.
False. It depends if the privacy policy allows you to opt in or out of sharing data
You need to write a program that has Karel move 6 times and then put a ball. Which control structure do you need to use?
For loop
What can be used to teach Karel to turn right?
Functions
What color would be created by the following lines of code? 000000 111111 000000
Green
Why should a programmer indent their code?
Helps show the structure of the code Easier for other people to understand Indenting is a key part of good programming style.
1. A person's digital footprint consists in:
I Comments you leave II. Pictures you post III. Topics you search IV. Apps you use V. Music you download VI. Emails you send
How we can help you to maintain your digital footprint?
I. Using privacy settings to limit your exposure II. Reviewing posts you are tagged in and taking action if needed III. Googling yourself on a regular basis
You need to write a program that has Karel move if the front is clear, but if it isn't clear, Karel will do nothing. Which control structure do you need to use?
If Statement
You need to write a program that has Karel put down a tennis ball if Karel is not able to move forward in the direction they are currently facing. Which control structure do you need to use?
If Statement
What kind of statement allows us to run a block code only if a certain condition is true?
If statement
How does Google get information from you?
If you use our services to make and receive calls or send and receive messages, we may collect call and message log information, such as your phone number,
What kind of statement allows us to run one block of code if one condition is true, and a separate block of code otherwise?
If/ else statement
You need to write a program where Karel will take a ball if there is a ball present, otherwise Karel should put down a ball. Which control structure do you need to use?
If/Else statement
Data type is a number without a decimal component?
Integer
What is the lowest level of programming language?
Is machine language which provides little to no abstraction from the computer's architecture.
What is the highest level of abstraction?
Is the entire system
What will be printed as a result of the code segment? var firstPlace = "Dylan"; var secondPlace = "Jacob"; firstPlace = "Jacob"; secondPlace = "Julia"; println(firstPlace); println(secondPlace);
JACOB AND JULIA
Which programming languages are used most often?
JavaScript
Which describes an instance of legal hacking?
Penetration testing for a company
What color would be created by the following hexademical value? FF00FF
Purple
What image would the following hexadecimal code create? FF0000 FFFFFF 00FF00
Red White Green
if Karel is facing North and the code turnLeft( ); turnLeft( );
South
If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs? move( ); move( ); move( ); turnLeft( ); move( );
Street 2 Avenue 6
Why is it important to continuously conduct penetration testing for a strong security system?
The main reason penetration tests are crucial to an organization's security is that they help personnel learn how to handle any type of break-in from a malicious entity
In the code, we create a circle and add it to the screen. What is the meaning of the x variable? var x = 20; var circle = new Circle(x); add(circle);
The radius of the circle
What is not true of white hat hackers?
They are breaking the law and are risk of legal repercussions
Why do we use if statements in JavaScript?
To do something only if a condition is true
Why do we use if/else statements in JavaScript?
To either do something if a condition is true or do something else.
Why do we use while loops in JavaScript?
To repeat some code while a condition is true.
What is top down design?
Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
How does a compiler work?
Translate the entire code into machine code
After the following code runs, what is the value of isWeekend? var isSaturday = true; var isSunday = false; var isWeekend = isSaturday || isSunday;
True
Which of the following is not a valid value for a boolean?
True false yes is not valid
How can Google get your location information?
When we use our services, we collect information about your location, which allows us to offer certain features
What are the languages used to build?
While Java has its fair share of faults, it's still the most popular language for Android development since it runs on a virtual machine. Java is commonly used to develop Android apps. Most of the other Android languages are considered a version of Java or a flavor of Java.
You need to write a program that has Karel take all the tennis balls where Karel is standing if there are any there. Karel should end up with no tennis balls on that spot. Which control structure do you need to use?
While Loop
What was the reason for the "Hack the Pentagon" pilot?
Will use commercial sector crowdsourcing to allow qualified participants to conduct vulnerability identification and analysis on the department's public webpages
An example of a Boolean value?
false
What is the best way for Karel to move 10 times?
for (var i = 0; i < 10; i++) { move(); }
Which function will teach Karel how to spin in a circle one time?
function spin( ) { turnLeft( ); turnLeft( ); turnLeft( ); turnLeft( ); }
Karel needs to pick up a pile of tennis balls. Which of the following start functions solves the problem at the highest level of abstraction?
function start( ) { moveToPile( ); takePile( ); }
What function do you need to call to get the width of the screen?
getWidth ()
What are the coordinates of the top right corner of the screen?
getWidth(), 0
Which of the below are examples of control structures?
if if/else while for
Which general if statement definition is written correctly?
if (condition) { //code }
Which of these is a valid Karel command?
move( );
What is the proper function to call to print to the screen?
println
What function do you need to call to ask the user of the program to enter text?
readLine
What commands does SuperKarel know that regular Karel does not?
turnAround( ) and turnRight( )
What keyword do you need to use to define a variable in JavaScript?
var
Which general while loop definition is written correctly?
while (condition) { //code }
What symbol represents the or operator in JavaScript?
| |
Why do we use functions in programming?
~Break down our program into smaller parts ~Avoid repeating code ~Make our program more readable
What can technology do for student education?
~Technology can create games for students to learn. ~Technology can automate certain processes faster than teachers ~Technology may have glitches or problems student learning but can still be useful.
What does an if/else statement look like in JavaScript?
~if (condition) { //code } ~else { //code }
Which of the following actions will help you avoid violation of copyright laws?
· Always cite sources · Check the copyright to make sure it can be used by others with out permission · Use public domain media
Which are best practices for having a secure password?
· Creating a password that is long in length · Creating a password that has a combination of letters, number, and special characters · Using a password manager
A privacy policy discloses:
· How a company uses your data · How a company shares your data ·How a company gathers your data
What is Google's reasoning for collecting your personal information?
· They collect information about your activity on our services, which we use to perform actions such as recommending a YouTube video that you etc
What are some actions you should take to maintain a positive digital footprint?
· share something good in your profile · Something constructive · positivity phrases