🇵🇰 HEC USAT · flashcards
HEC USAT Computer Science Flashcards
50 question-and-answer cards covering Computer Science as it is examined in HEC USAT. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.
24 sample cards from the Computer Science deck
Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.
What is the purpose of an if-else statement?
An if-else statement executes one block of code if a condition is true and a different block if the condition is false, allowing the program to make decisions.
What is a function in programming?
A function is a named, reusable block of code that performs a specific task. It can take inputs (parameters), perform operations, and return a result, helping reduce code repetition.
What is the difference between a function's parameter and an argument?
A parameter is the variable named in the function definition that receives a value. An argument is the actual value passed to the function when it is called.
What is an array in programming?
An array is a data structure that stores a collection of elements of the same data type in contiguous memory locations, accessed using an index.
In most programming languages, what is the index of the first element of an array?
The first element of an array is at index 0 (zero-based indexing). So an array of size n has indices from 0 to n-1.
What is the main advantage of using functions in a program?
Functions promote code reusability, make programs modular and easier to read, reduce repetition, and simplify debugging and maintenance.
What is an algorithm?
An algorithm is a finite, step-by-step set of well-defined instructions to solve a particular problem or perform a task.
What is a flowchart?
A flowchart is a graphical or diagrammatic representation of an algorithm or process using standard symbols connected by arrows to show the flow of control.
What flowchart symbol is used for a decision, and what shape is it?
A decision in a flowchart is represented by a diamond (rhombus) shape, which has one entry point and two or more exit paths (e.g., yes/no).
What flowchart symbol represents the start or end of a process?
The terminal (start/stop) symbol is an oval or rounded rectangle, used to indicate the beginning or end of a flowchart.
What flowchart symbol is used for a process or calculation step?
A rectangle is used to represent a process, action, or calculation step in a flowchart.
What is pseudocode?
Pseudocode is an informal, high-level description of an algorithm using plain language mixed with programming-like structure, without following the syntax of any specific programming language.
How many bits are in one byte, and what is the smallest unit of data?
One byte equals 8 bits. The bit (binary digit, 0 or 1) is the smallest unit of data in a computer.
Arrange these units from smallest to largest: Megabyte, Kilobyte, Gigabyte, Byte.
Byte < Kilobyte (KB) < Megabyte (MB) < Gigabyte (GB). Each unit is approximately 1024 times the previous one.
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a character encoding standard that represents text characters as numbers, typically using 7 or 8 bits per character.
How is an image represented digitally in a computer?
An image is represented as a grid of pixels, where each pixel's color is stored as a binary number. More bits per pixel allow more colors (color depth).
What is a database?
A database is an organized collection of related data stored electronically so it can be easily accessed, managed, and updated.
What is a DBMS?
A DBMS (Database Management System) is software that allows users to create, store, retrieve, update, and manage data in a database (e.g., MySQL, Oracle, MS Access).
In a database, what is the difference between a field and a record?
A field is a single column representing one attribute (e.g., Name). A record is a single row containing a complete set of related fields about one item (e.g., one student's full data).
What is a primary key in a database?
A primary key is a field (or set of fields) that uniquely identifies each record in a table. It cannot contain duplicate or null values.
In a spreadsheet, what is a cell and how is it referenced?
A cell is the intersection of a row and a column where data is entered. It is referenced by its column letter and row number (e.g., B5).
Write the spreadsheet formula to add the values in cells A1 to A10.
=SUM(A1:A10). The colon denotes a range, and SUM adds all values within that range.
What is the difference between a LAN and a WAN?
A LAN (Local Area Network) covers a small geographic area like a building or office. A WAN (Wide Area Network) covers a large geographic area, like a country, and connects multiple LANs (the Internet is the largest WAN).
What is the difference between the Internet and the World Wide Web (WWW)?
The Internet is the global network of interconnected computers (the infrastructure). The World Wide Web is a service that runs on the Internet, consisting of websites and web pages accessed via browsers using HTTP.
What this deck covers
The Computer Science deck follows the HEC USAT Computer Science syllabus — 4 chapters and 13 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 12.5 cards per chapter.
Answers are written to be recallable, not just readable — averaging about 146 characters, which is long enough to carry the reasoning and short enough to say out loud.
A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.
Computer Science flashcards FAQ
How many Computer Science flashcards are in this HEC USAT deck?
50 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.
Are these HEC USAT flashcards free?
Yes. The preview here is free to read with no signup, and the full 50-card deck is free inside the Examius app.
What do the Computer Science cards cover?
They follow the HEC USAT Computer Science syllabus — 4 chapters and 13 topics — so the questions track what is actually examinable.
How should I use these flashcards?
Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.