Sunday, July 14, 2019

Class Test 3 CS/IP 15-7-2018 - CLASS 11

Question and Answers of Class Test 3 – 15th July 11 

Q1. Distinguish internal and external memory of a computer?
Ans1.
Internal Memory
External Memory
This type of memory is usually fixed on the motherboard itself This type of memory is connected to the motherboard via some cables and not directly on it
The read/write speed is very fast compared to External memory The read/write speed is slow as compared to Internal memory
Cost per bit is high compared to external Memory Cost per bit is low compared to internal Memory
More connecting pins to transfer data at higher rate Less connecting pins
Less portable Highly portable
Example: RAM, eMMC(embedded MultiMediaCard) Example: HDD, DVD, Pendrive

Q2. Differentiate compiler and interpreter.
Ans2.
Compiler
Interpreter
Read the complete program entirely and generates an executable(usually bytecode) if no errors exists Converts one statement to machine executable code at a time
Code analysis time is more but the execution time is less Code analysis time is less but execution is more
Once the executable is generated,  compiler is not required for the execution Interpreter is required for the entire process of execution
Less memory efficient as an bytecode gets generated More memory efficient as no bytecode is generated
Modification of the features of the program is lengthy Modification of the features of the program is easy and less time consuming
Removing of bugs in the code is complicated as all the errors are presented at once at the end Removing of bugs are easy as errors are generated instantly
Example: c, c++, Example: Python, javascript, MATLAB

Q3. What is the role of input unit in a computer?
Ans3. The role of input device is to take data and instruction form the user or from any other source and convert the data/instruction in such a format (through encoding) that is usable by the computer. Example of input unit are-Keyboard, mouse, microphone etc.

Q4. What are the jobs of the Operating System?
Ans4. Few jobs of the operating system is listed below
  1. Processor management
  2. Process management
  3. Memory management
  4. Device management
  5. Storage management
  6. Application interface
  7. User interface
Q5. What are the types of Operating System with example?
Ans5. One of the classifications of OS can be:
  • Single-User, Single Task Operating System: only one user and one application can be handled by the operating system. Example:- CPM (Control program for microprocessor), DOS(Disk operating system).
  •     Single-User, Multi-Task Operating System: Only one user but multiple applications can be handled by the OS. Example:- windows 95 etc.
  •   Multiuser Operating System: This type operating system is able handle multiple users and multiple applications. Eg:- Linux (can support 4294967296 (2^32) hosts)
  •  Multiprocessing Operating System: The OS is able to schedule (i.e. handle) multiple processor. Eg:- linux, windows 7
  •  Embedded Operating System: These types of OS are tailored to do one job and does not support all the features general purpose operating OS. Eg:- OS for cars, Traffic lights, POS(point of sale) terminal, elevators etc
  •  Distributed Operating System: A distributed operating system runs over a collection of independent, networked, communicating, and physically separate computational nodes. These OS is able handle jobs which are serviced by multiple CPUs. Each individual node holds a specific software subset of the global aggregate operating system. Eg:- WWW is the largest distributive operating system, DYSEAC.

Share: