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 38

Unix philosophy states?
Write programs that do one thing well and work together via text streams
click to copy
Which Linux distribution is most commonly used on servers?
Ubuntu Server / CentOS / Red Hat Enterprise Linux
click to copy
Kali Linux is used for?
Penetration testing and security auditing (preloaded security tools)
click to copy
Android is based on?
Linux kernel with custom runtime (ART)
click to copy
ChromeOS is based on?
Linux kernel with Chrome browser as main interface
click to copy
Which OS uses APK packages?
Android
click to copy
iOS App Store review process is?
Mandatory App Store review by Apple before app publication
click to copy
Package manager 'pip' is for?
Python packages
click to copy
npm is package manager for?
Node.js / JavaScript
click to copy
Virtual environment in Python (venv) is used to?
Create isolated Python environments with separate dependencies per project
click to copy
conda is a package manager for?
Python and R scientific computing packages and environments
click to copy
shebang line (#!/usr/bin/python3) in scripts?
Specifies which interpreter to use when script is executed directly
click to copy
Which SQL statement is used to create a new database?
CREATE DATABASE
click to copy
Which SQL command selects all columns?
SELECT *
click to copy
SQL ORDER BY default sort order is?
Ascending
click to copy
Which SQL keyword filters duplicate rows?
DISTINCT
click to copy
SQL LIKE operator uses which wildcard for multiple characters?
%
click to copy
SQL BETWEEN operator is?
Inclusive of both boundary values
click to copy
NULL in SQL represents?
Unknown or missing value
click to copy
IS NULL vs = NULL in SQL?
IS NULL is correct; = NULL always returns false (no value equals NULL)
click to copy
TRUNCATE vs DELETE in SQL?
TRUNCATE faster (removes all rows, can't rollback in many DBs); DELETE is slower but rollbackable
click to copy
DROP TABLE vs TRUNCATE TABLE?
DROP removes table structure AND data; TRUNCATE removes only data
click to copy
Which SQL clause groups rows with same values?
GROUP BY
click to copy
HAVING clause in SQL filters?
Groups created by GROUP BY after aggregation
click to copy
Which aggregate function calculates average?
AVG()
click to copy
SQL subquery is?
A nested SQL query inside another query
click to copy
Correlated subquery refers to?
A subquery that references a column from the outer query
click to copy
EXISTS operator in SQL?
Returns TRUE if subquery returns any rows
click to copy
UNION vs UNION ALL in SQL?
UNION removes duplicates; UNION ALL keeps all rows including duplicates
click to copy
EXCEPT (or MINUS in Oracle) returns?
Rows in first query not present in second query
click to copy
INTERSECT in SQL returns?
Rows common to both queries
click to copy
Which SQL function gets current date and time?
All of the above (varies by DBMS)
click to copy
CHAR vs VARCHAR in SQL?
CHAR is fixed-length; VARCHAR is variable-length (more efficient for varying text)
click to copy
Which SQL data type stores large text?
TEXT / CLOB (Character Large Object)
click to copy
BLOB in SQL stores?
Binary Large Objects — images, files, audio
click to copy
AUTO_INCREMENT in MySQL?
Automatically generates unique sequential integers for primary key
click to copy
Which MySQL command shows all databases?
SHOW DATABASES
click to copy
USE database_name in MySQL?
Selects/switches to specified database for subsequent queries
click to copy

Computer Fundamentals → Operating System Basics 1

iOS kernel is named?
XNU (X is Not Unix) — hybrid kernel from Mach and BSD
click to copy

Computer Fundamentals → Software and Hardware 1

Which command starts Python interpreter interactively?
python
click to copy