40 Questions
What is a consequence of online activities that can lead to users reinforcing their existing beliefs about a topic?
Encountering echo chambers
What is the primary purpose of cookies on a website?
To store information about a user for customized experiences
What is the primary risk of using the same password for multiple applications?
Account compromise if one site is hacked
What is the primary purpose of third-party cookies?
To enable tracking of user behavior across multiple websites
What is a key principle for minimizing digital risks when responding to emails?
Not clicking on suspicious links or download attachments
What is a key feature of network policies?
Locking screens when devices are not in use
What has been a significant impact of computing on society?
Immediate access to events and information
What should passwords ideally be, according to best practices?
Complex and unique for every application
What is the primary purpose of curly brackets {}
in Java?
To group code together in a block
Which of the following data types can hold a single character?
char
What is the purpose of white space in Java code?
To make the code more readable
What is the purpose of meaningful variable names?
To help keep track of the purpose of variables
What is the purpose of a semicolon ;
in Java?
To separate statements
What is the purpose of a multiple line comment in Java?
To comment out multiple lines of code
What is the primary purpose of a conditional in Java?
To make decisions based on conditions
What is the purpose of indenting in Java?
To make the code more readable
What is the primary purpose of an else statement?
To specify an alternative action when the if condition is false
What is the main difference between a switch statement and an if-else statement?
A switch statement is used for a single condition with multiple possible values
What is the purpose of the break statement in a switch structure?
To skip to the end of the switch structure and execute the next line of code
What is the primary purpose of a for loop?
To execute a block of code a set number of times
What is the purpose of the default statement in a switch structure?
To specify an alternative action when all cases are false
What is the purpose of an if-else if structure?
To check multiple conditions and execute a block of code only when one condition is true
What is the purpose of a code block in an if statement?
To execute a block of code only when a condition is true
What is the primary purpose of iteration in programming?
To repeat a block of code until a condition is met
What is the purpose of a debugger in a program?
To locate the runtime error and point to the line where the error is
What type of error occurs when a program compiles and runs but fails to complete?
Runtime Error
What is the purpose of a diamond in a flow chart?
To show decisions that must be made or questions that must be answered
What is a characteristic of a loop in a program?
It contains at least one decision diamond
What is the purpose of a rectangle in a flow chart?
To show actions, activities, and steps in a program sequence
What is an example of a runtime error?
Dividing by zero
What is the purpose of arrows in a flow chart?
To show the direction of flow in a program and the outcome of a decision
What is a characteristic of a logic error?
The program runs without crashing but doesn't do what it's intended to do
What is the main purpose of the condition statement in a for loop?
To determine when to stop the loop
What happens if the step expression in a for loop increases in the wrong direction?
The loop will run infinitely
What is the purpose of the initialization expression in a for loop?
To initialize the loop variable
What is the difference between a while loop and a do-while loop?
The condition is checked before the body in a while loop
What happens if the condition in a while loop is false to begin with?
The loop will never run
What is the purpose of the body in a for loop?
To execute a set of statements repeatedly
What happens if the step expression is missing in a for loop?
The loop will run indefinitely
Where is the step expression typically located in a while loop?
In the body of the loop
Learn about online privacy risks, how browsers and social media platforms collect and exploit user data, and how targeted advertising works. Understand the role of cookies in tracking online behavior.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free