Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

Computer Fundamentals → Introduction to Computer 36

Which sorting method does Python's list.sort() use?
Timsort (hybrid merge sort + insertion sort)
click to copy
zip() function in Python?
Combines multiple iterables element-by-element into tuples
click to copy
map() function in Python?
Applies a function to every element of an iterable
click to copy
filter() function in Python?
Returns elements from iterable where function returns True
click to copy
reduce() function is imported from?
functools module
click to copy
Python set is?
Unordered, no duplicates, mutable
click to copy
frozenset in Python is?
Immutable version of set — hashable, can be used as dictionary key
click to copy
deque in Python (collections.deque)?
Double-ended queue — efficient append/pop from both ends
click to copy
defaultdict in Python?
Dictionary with default value for missing keys — no KeyError
click to copy
Counter in Python (collections.Counter)?
Dictionary subclass counting hashable objects by frequency
click to copy
Python's heapq module provides?
Min-heap operations on a regular list
click to copy
Which Python module supports regular expressions?
re
click to copy
What does 'is' operator check in Python?
Identity — whether two variables point to same object in memory
click to copy
Pickling in Python?
Serializing Python objects to byte stream for storage/transmission
click to copy
__slots__ in Python class?
Restricts instance attributes and reduces memory usage
click to copy
Abstract class in Python is created using?
ABC module (from abc import ABC, abstractmethod)
click to copy
Python @property decorator?
Allows a method to be accessed like an attribute (getter/setter)
click to copy
Which Python framework is used for web development?
Django and Flask
click to copy
What is a zero-day exploit?
Attack using vulnerability unknown to vendor with no patch available
click to copy
Multi-factor authentication (MFA) categories are?
Something you know, have, and are (knowledge, possession, inherence)
click to copy
Which port does HTTPS use?
443
click to copy
SSL/TLS handshake purpose is?
Negotiate encryption parameters and exchange keys before secure communication
click to copy
What is a digital certificate used for?
Proving identity and enabling encrypted communication (contains public key + owner info)
click to copy
Symmetric encryption uses?
Same key for encryption and decryption
click to copy
Asymmetric encryption uses?
Key pair — public key encrypts, private key decrypts (or vice versa)
click to copy
Which of these is a symmetric algorithm?
AES
click to copy
DMZ (Demilitarized Zone) in network security is?
Network segment between internet and internal network for public-facing servers
click to copy
IDS vs IPS: main difference is?
IDS only detects and alerts; IPS actively blocks threats
click to copy
Which tool is used for network vulnerability scanning?
Nessus / OpenVAS
click to copy
Password complexity requirements typically include?
Uppercase, lowercase, numbers, special characters, and minimum length
click to copy
Which hashing algorithm is considered broken (collision vulnerability)?
MD5
click to copy
HTTPS protects against?
Man-in-the-middle attacks and eavesdropping by encrypting data in transit
click to copy
VPN provides?
Encrypted tunnel for secure remote access and privacy
click to copy
Social engineering target is?
Human psychology — manipulating people rather than systems
click to copy
Pretexting in social engineering?
Creating fabricated scenario to extract information from victims
click to copy
Baiting social engineering attack?
Offering something enticing (USB drive, free download) to lure victims
click to copy

Computer Fundamentals → Computer Security 3

Which type of malware encrypts files and demands payment?
Ransomware
click to copy
Firewall rules are processed in?
Top-to-bottom order — first matching rule applies
click to copy
Stateful firewall tracks?
Connection state — allows return traffic for established connections automatically
click to copy

Computer Fundamentals → Internet Basics 1

Phishing email characteristics include?
Urgent language, spoofed sender, suspicious links, requests credentials
click to copy