Computer Science Notes for Assistant Professor Exam





TRB Computer Science Unit 1 – Computer Fundamentals & Programming Concepts (Notes + MCQs)

Computer Science – Unit 1: Computer Fundamentals & Programming Concepts

NOTES

1) Basics of Computer

  • Computer: An electronic device that processes data into information.
  • Characteristics: Speed, accuracy, diligence, versatility, storage.
  • Functional Units: Input, Process, Output, Storage, Control.

2) Components of Computer System

  • Hardware: Physical components like CPU, monitor, keyboard, etc.
  • Software: Instructions that make hardware work.
  • Firmware: Software embedded into hardware.

3) Types of Software

  • System Software: Operating systems, compilers, drivers.
  • Application Software: Word processors, games, browsers.
  • Utility Software: Antivirus, compression, file management tools.

4) Number Systems & Data Representation

  • Binary (Base 2), Octal (Base 8), Decimal (Base 10), Hexadecimal (Base 16).
  • Conversions between number systems.
  • Character coding: ASCII, Unicode.

5) Logic Gates

  • Basic gates: AND, OR, NOT.
  • Derived gates: NAND, NOR, XOR, XNOR.
  • Truth tables and Boolean expressions.

6) Memory & Storage

  • Primary Memory: RAM (volatile), ROM (non-volatile).
  • Secondary Storage: Hard disk, SSD, optical drives.
  • Cache & Registers: Fast temporary storage near CPU.

7) Operating System Concepts

  • Acts as interface between user and hardware.
  • Functions: process management, memory management, file handling.
  • Examples: Windows, Linux, macOS.

8) Programming Fundamentals

  • Program: Set of instructions written in programming language.
  • Types: Procedural, Object-Oriented, Functional, Logic-based.
  • Steps: Problem definition → Algorithm → Flowchart → Coding → Testing.

9) Algorithm & Flowchart

  • Algorithm: Step-by-step solution to a problem.
  • Flowchart: Graphical representation using symbols (start, input/output, process, decision).
  • Helps visualize logic and debug errors early.

10) Types of Programming Languages

  • Low-Level: Machine and Assembly languages.
  • High-Level: C, C++, Java, Python, etc.
  • Translators: Assembler, Compiler, Interpreter.

MCQs – 25 Questions

1) Which part of the computer executes arithmetic and logic operations?
  1. Control Unit
  2. ALU
  3. Memory Unit
  4. Cache
Answer: B. The ALU performs arithmetic and logical operations.
2) Which of the following is volatile memory?
  1. ROM
  2. RAM
  3. Hard Disk
  4. CD-ROM
Answer: B.
3) Which device is used to convert digital signals to analog?
  1. ADC
  2. DAC
  3. MODEM
  4. Amplifier
Answer: C. MODEM converts digital to analog and vice versa.
4) 1 Byte = ?
  1. 4 bits
  2. 8 bits
  3. 16 bits
  4. 32 bits
Answer: B.
5) Which is NOT an operating system?
  1. Linux
  2. Windows
  3. Python
  4. macOS
Answer: C.
6) Which language uses mnemonics?
  1. Machine
  2. Assembly
  3. High-level
  4. Natural
Answer: B.
7) Binary of decimal 13 is:
  1. 1100
  2. 1101
  3. 1010
  4. 1001
Answer: B.
8) Which logic gate outputs 1 only if both inputs are 1?
  1. OR
  2. AND
  3. NOR
  4. XOR
Answer: B.
9) Which software controls hardware operations?
  1. Utility
  2. System Software
  3. Application
  4. Compiler
Answer: B.
10) The process of correcting program errors is called:
  1. Debugging
  2. Compiling
  3. Interpreting
  4. Testing
Answer: A.
11) ASCII code represents:
  1. Numbers only
  2. Characters
  3. Instructions
  4. Signals
Answer: B.
12) Which data structure uses FIFO?
  1. Stack
  2. Queue
  3. Tree
  4. Graph
Answer: B.
13) A flowchart symbol for decision is:
  1. Rectangle
  2. Diamond
  3. Parallelogram
  4. Circle
Answer: B.
14) The brain of the computer is:
  1. CPU
  2. ALU
  3. CU
  4. Memory
Answer: A.
15) The smallest addressable unit of memory is:
  1. Byte
  2. Bit
  3. Word
  4. Nibble
Answer: A.
16) The full form of CPU is:
  1. Central Process Unit
  2. Central Processing Unit
  3. Control Processing Unit
  4. Central Program Unit
Answer: B.
17) Which memory is fastest?
  1. RAM
  2. Cache
  3. Hard Disk
  4. ROM
Answer: B.
18) The binary number 1111 is equal to decimal:
  1. 14
  2. 15
  3. 16
  4. 13
Answer: B.
19) C language was developed by:
  1. James Gosling
  2. Charles Babbage
  3. Dennis Ritchie
  4. Alan Turing
Answer: C.
20) The ‘if’ statement in programming is used for:
  1. Iteration
  2. Decision making
  3. Input
  4. Output
Answer: B.
© TrbExam.co.in — TRB Computer Science Unit 1.