stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Cybersecurity and Programming Flashcards | StudBud
Explore
/
Cybersecurity and Programming
Cybersecurity and Programming
20 terms
·
StudBud Administration
·
43 plays
Test your knowledge on encryption, phishing attacks, web vulnerabilities, and programming concepts
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
14. Which of the following is true about a stack data structure
c) It can only store integers
a) It operates on a First In, First Out (FIFO) principle
b) It operates on a Last In, First Out (LIFO) principle
d) It can only store strings
2
17. In which language can you create a custom exception by extending the Exception class?
c) Java
a) Python
b) C#
d) Ruby
3
9. What will be the output of this code snippet?
d)9
b)8
a)11
c)6
4
7. What is the primary purpose of using a "VPN" in a network environment?
d) To improve network performance by reducing latency and packet loss
a) To prevent DNS spoofing by encrypting DNS queries
b) To ensure secure communication over public or untrusted networks
c) To anonymize network traffic by routing it through a proxy server
5
12. In Java, which of the following is the correct way to declare an array of integers?
c) int arr = new int[5];
d) All of the above
a) int[] arr;
b) int arr[];
6
13. What is the default value of a boolean variable in Java
a) true
b) false
d) 0
c) null
7
3. Which of the following is a web vulnerability?
a)Cross-site scripting (XSS)
c)SYN Flood
b)DNS Spoofing
d)Ping of death
8
6. What type of attack uses multiple computers to overwhelm a system with traffic, making it unavailable?
b) Denial of Service (DoS)
d) Distributed Denial of Service (DDoS)
a) Man-in-the-middle attack
c) Phishing
9
18. Which programming language is known as the "mother of all languages"?
d) Fortran
a) Java
c) COBOL
b) Assembly Language
10
16. Which of the following is the correct syntax for a main method in Java?
d) public void main(String[] args)
b) public void static main(String args[])
a) public static void main(String[] args)
c) static void public main(String[] args)
11
10. What does the acronym "IP" stand for in networking?
a) Internet Protocol
d) Internal Processing
b) Integrated Protocol
c) Internet Packet
12
11. What is the main function of the DNS (Domain Name System)?
b) To map domain names to IP addresses
d) To establish a secure connection between client and server
c) To monitor network traffic
a) To encrypt data during transmission
13
19. What will the following Python code print?
a) 1 2 3
c) 0 1 2
d) 0 1 2 3
b) 1 2
14
1. Which of the following is the main purpose of encryption?
b) To protect data confidentiality by transforming it into a secure format
a) To increase the speed of internet connections
c) To store data in a backup location
d) To reduce the size of files for faster transmission
15
2. Which of the following is the most effective way to protect against phishing attacks?
c) Verifying the authenticity of emails and links
a) Installing antivirus software
d) Disabling firewalls
b) Using strong passwords
16
5. Which one of the following is ethical hacker?
c)White hat
a)Black hat
b)Red hat
d)Gray Hat
17
20. What will the following Python code output?
b) Hello, World
c) Hello, Alice Hello ,World
d) Error
a) Hello, Alice
18
8. What is the output of the following Python code?
7
6
11
9
19
15. What will the following Python code output?
a)3
c)5
b)4
d)6
20
4. What does "VIRUS" stand for in the context of cybersecurity?
b) Vital Information Recording Under Software
d) Vital Information Resource Under Seize
c) Virtual Infection Repeating Under Software
a) Very Important Resource for Unwanted Software