🇵🇰 HEC USAT · subject

HEC USAT Computer Science Syllabus

The Computer Science syllabus for HEC USAT in full: 4 chapters and 13 topics, every one listed below, plus 50 Computer Science flashcards with answers.

4Chapters
13Topics
50Flashcards

Computer Science syllabus: all 4 chapters

Expand any chapter to see its topics and sub-topics.

  1. Fundamentals of Computing

    3 topics
    • Computer Components and Hardware
    • Software Types
    • Number Systems and Binary Logic
  2. Programming Concepts

    4 topics
    • Variables and Data Types
    • Control Structures and Loops
    • Functions and Arrays
    • Algorithms and Flowcharts
  3. Data and Databases

    3 topics
    • Data Representation
    • Database Concepts
    • Spreadsheets and Data Handling
  4. Networks and the Internet

    3 topics
    • Computer Networks
    • Internet and Web Basics
    • Cyber Security and Ethics

HEC USAT Computer Science flashcards — 50 questions with answers

  1. What is the function of the CPU in a computer system?

    The CPU (Central Processing Unit) is the brain of the computer; it executes instructions, performs calculations, and controls all other components. It consists of the ALU, Control Unit, and registers.

  2. What are the two main components inside the CPU and what does each do?

    The ALU (Arithmetic Logic Unit) performs arithmetic and logical operations, and the Control Unit (CU) directs the flow of data and controls the execution of instructions.

  3. Differentiate between RAM and ROM.

    RAM (Random Access Memory) is volatile, read/write, temporary working memory that loses data when power is off. ROM (Read Only Memory) is non-volatile, permanent, and stores instructions like the BIOS that are not lost when power is off.

  4. Classify input and output devices with two examples each.

    Input devices send data to the computer (e.g., keyboard, mouse, scanner). Output devices receive data from the computer (e.g., monitor, printer, speakers).

  5. What is the difference between hardware and software?

    Hardware refers to the physical, tangible components of a computer (e.g., CPU, monitor, keyboard). Software refers to the set of instructions or programs that tell the hardware what to do.

  6. What is the difference between primary and secondary storage?

    Primary storage (e.g., RAM, ROM, cache) is directly accessible by the CPU and is fast but usually volatile. Secondary storage (e.g., hard disk, SSD, USB) is for permanent storage, is slower, non-volatile, and not directly accessed by the CPU.

  7. What is the difference between system software and application software?

    System software manages and controls computer hardware and provides a platform for other software (e.g., operating systems, device drivers). Application software performs specific user tasks (e.g., MS Word, browsers, games).

  8. Give two examples of an operating system and state its main purpose.

    Examples: Windows, Linux, macOS, Android. The operating system manages hardware resources, memory, files, processes, and provides a user interface between the user and the computer.

  9. What is a compiler and how does it differ from an interpreter?

    A compiler translates the entire high-level program into machine code at once before execution. An interpreter translates and executes the program line by line. Compilers are faster at runtime; interpreters are easier to debug.

  10. What is utility software? Give two examples.

    Utility software is system software that helps maintain and optimize the computer. Examples: antivirus programs, disk defragmenters, file compression tools, and backup software.

  11. Convert the binary number 1011 to decimal.

    1011 = (1×8)+(0×4)+(1×2)+(1×1) = 8+0+2+1 = 11 in decimal.

  12. Convert the decimal number 13 to binary.

    13 in binary is 1101 (8+4+0+1 = 13).

  13. What is the base (radix) of binary, octal, decimal, and hexadecimal number systems?

    Binary = base 2, Octal = base 8, Decimal = base 10, Hexadecimal = base 16.

  14. What are the hexadecimal digits and what do A through F represent?

    Hexadecimal uses 0-9 and A-F, where A=10, B=11, C=12, D=13, E=14, and F=15.

  15. State the truth table output of an AND gate.

    AND gate outputs 1 only when both inputs are 1: 0 AND 0 = 0, 0 AND 1 = 0, 1 AND 0 = 0, 1 AND 1 = 1.

  16. State the truth table output of an OR gate.

    OR gate outputs 1 when at least one input is 1: 0 OR 0 = 0, 0 OR 1 = 1, 1 OR 0 = 1, 1 OR 1 = 1.

  17. What does a NOT gate do?

    A NOT gate (inverter) reverses the input: NOT 0 = 1 and NOT 1 = 0. It has a single input and single output.

  18. What is a variable in programming?

    A variable is a named storage location in memory whose value can be changed during program execution. It holds data that the program can use and manipulate.

  19. Name four common primitive data types and what each stores.

    Integer (whole numbers), Float/Real (decimal numbers), Char (single character), and Boolean (true/false values). String stores a sequence of characters.

  20. What is the difference between a constant and a variable?

    A variable's value can change during program execution, while a constant holds a fixed value that cannot be changed once assigned.

Show the other 30 Computer Science flashcards
  1. What is the difference between a Boolean and an integer data type?

    A Boolean stores only two values, true or false (1 or 0), while an integer stores whole numbers (positive, negative, or zero) without decimals.

  2. What is a control structure in programming?

    A control structure determines the order in which statements are executed. The three main types are sequence, selection (decision), and iteration (loops).

  3. What is the difference between selection and iteration control structures?

    Selection (e.g., if-else, switch) chooses which block of code to execute based on a condition. Iteration (loops like for, while) repeats a block of code multiple times.

  4. Differentiate between a 'while' loop and a 'for' loop.

    A 'for' loop is used when the number of iterations is known in advance. A 'while' loop is used when the number of iterations is unknown and depends on a condition being true.

  5. What is the difference between a 'while' loop and a 'do-while' loop?

    A 'while' loop checks the condition before executing the body (may run zero times). A 'do-while' loop checks the condition after executing the body, so it always runs at least once.

  6. What is an infinite loop and what causes it?

    An infinite loop is a loop that never terminates because its exit condition never becomes false. It is usually caused by a missing or incorrect update to the loop control variable.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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).

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. 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).

  23. What is a database?

    A database is an organized collection of related data stored electronically so it can be easily accessed, managed, and updated.

  24. 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).

  25. 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).

  26. 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.

  27. 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).

  28. 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.

  29. 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).

  30. 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.

HEC USAT Computer Science FAQ

What is in the HEC USAT Computer Science syllabus?

HEC USAT Computer Science is split into 4 chapters: Fundamentals of Computing, Programming Concepts, Data and Databases and Networks and the Internet. Together they contain 13 topics.

How many chapters are in HEC USAT Computer Science?

4 chapters, containing 13 topics. The largest chapter is Programming Concepts, with 4 topics.

Are there flashcards for HEC USAT Computer Science?

Yes — a 50-card Computer Science deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.