Skip to main content

Computing & Informatics - short answer type questions from AMIE exams

Explain method overloading in C using an example.
C++ Overloading (Operator and Function) C++ allows you to specify more than one definition for a function name or an operator in the same scope, which is called function overloading and operator overloading respectively.

How is a compiler different from a language translator?
Compiler converts the program from one computer language to another computer language that is translating from a higher-level language to a lower-level language. A translator translates one language to many other languages or else we can say a translator is usually translating from a high-level language to another high-level language, or from a low-level language to a high-level language.

Write two important advantages of using a DBMS as compared to using a file for storing data.
Compared to the File Based Data Management System, Database Management System has many advantages. Some of these advantages are given below −
  • Reducing Data Redundancy: The file-based data management systems contained multiple files that were stored in many different locations in a system or even across multiple systems. Because of this, there were sometimes multiple copies of the same file which lead to data redundancy.  This is prevented in a database as there is a single database and any change in it is reflected immediately. Because of this, there is no chance of encountering duplicate data.
  • Sharing of Data: In a database, the users of the database can share the data among themselves. There are various levels of authorisation to access the data, and consequently, the data can only be shared based on the correct authorisation protocols being followed.  Many remote users can also access the database simultaneously and share the data between themselves.
  • Data Integrity: Data integrity means that the data is accurate and consistent in the database. Data Integrity is very important as there are multiple databases in a DBMS. All of these databases contain data that is visible to multiple users. So it is necessary to ensure that the data is correct and consistent in all the databases and for all the users. 
  • Data Security: Data Security is a vital concept in a database. Only authorised users should be allowed to access the database and their identity should be authenticated using a username and password. Unauthorised users should not be allowed to access the database under any circumstances as it violates the integrity constraints.
  • Privacy: The privacy rule in a database means only the authorized users can access a database according to its privacy constraints. There are levels of database access and a user can only view the data he is allowed to. For example - In social networking sites, access constraints are different for different accounts a user may want to access.
  • Backup and Recovery: Database Management System automatically takes care of backup and recovery. The users don't need to backup data periodically because this is taken care of by the DBMS. Moreover, it also restores the database after a crash or system failure to its previous condition. 
  • Data Consistency: Data consistency is ensured in a database because there is no data redundancy. All data appears consistently across the database and the data is the same for all the users viewing the database. Moreover, any changes made to the database are immediately reflected by all the users and there is no data inconsistency.
Write two advantages of using client-server software over monolithic software.
  • Easy to implement and optimize performance. 
  • Do not have compatibility or Context switching issues. 
  • The cost of deployment is less. e.g.- development and management cost.
Write two important ways in which a system software differs from application software.
Application software is computer software designed to help the user to perform specific tasks. 
System software is computer software designed to operate the computer hardware and to provide a platform for running application software. System software is also known as the operating system and includes Microsoft Windows, Apple's OSX and Linux, while application software refers to programs that perform tasks and includes Microsoft Office, Adobe Photoshop and Apple iTunes. 
Application software requires an operating system to be installed and booted up before it can be used.

What do you mean by "throughput" of an operating system?
In a computer context, throughput is the amount of work that a computer can do in a given period of time. The work can be measured in terms of the amount of data processed or transferred from one location to another by a computer, computer network or computer component.

Give one factor that makes cache memory faster than main memory.
In the case of a CPU cache, it is faster because it's on the same die as the processor. In other words, the requested data doesn't have to be bussed over to the processor; it's already there. In the case of the cache on a hard drive, it's faster because it's in solid-state memory, and not still on the rotating platters. In the case of the cache on a website, it's faster because the data has already been retrieved from the database (which, in some cases, could be located anywhere in the world). So it's about locality, mostly. Cache eliminates the data transfer step.

What do you mean by the word length of a computer?
"Word size" refers to the number of bits processed by a computer's CPU in one go (these days, typically 32 bits or 64 bits). Data bus size, instruction size, address size are usually multiples of the word size.

What is the difference between a compiler and an interpreter?
A compiler searches all the errors of a program and lists them. If the program is error-free then it converts the code of the program into machine code and then the program can be executed by separate commands. An interpreter checks the errors of a program statement by statement.

---
The study material for AMIE/B Tech/Junior Engineer exams is available at https://amiestudycircle.com

Comments

Popular posts from this blog

Mechanics of Fluids (Solved Numerical Problems)

Numerical The surface Tension of water in contact with air at 20°C is 0.0725 N/m. The pressure inside a droplet of water is to be 0.02 N/cm² greater than the outside pressure. Calculate the diameter of the droplet of water. (7 marks) (AMIE Summer 2023) Solution Surface tension, σ = 0.0725 N/m Pressure intensity, P = 0.02 N/m 2 P = 4σ/d Hence, the Diameter of the dropd = 4 x 0.0725/200 = 1.45 mm Numerical Find the surface tension in a soap bubble of 40 mm diameter when the inside pressure is 2.5 N/m² above atmospheric pressure. (7 marks) (AMIE Summer 2023) Answer: 0.0125 N/m Numerical The pressure outside the droplet of water of diameter 0.04 mm is 10.32 N/cm² (atmospheric pressure). Calculate the pressure within the droplet if surface tension is given as 0.0725 N/m of water. (AMIE Summer 2023, 7 marks) Answer: 0.725 N/cm 2   Numerical An open lank contains water up to a depth of 2 m and above it an oil of specific gravity 0.9 for a depth of 1 m. Find the pressure intensity (i) at t...

Energy Systems (Solved Numerical Problems)

Wind at 1 standard atmospheric pressure and \({15^0}C\) has velocity of 15 m/s, calculate (i) the total power density in the wind stream (ii) the maximum obtainable power density (iii) a reasonably obtainable power density (iv) total power (v) torque and axial thrust Given: turbine diameter = 120 m, and turbine operating speed = 40 rpm at maximum efficiency. Propeller type wind turbine is considered. (AMIE Winter 2023) Solution For air, the value of gas constant is R = 0.287 kJ/kg.K 1 atm = 1.01325 x 105 Pa Air density \(\rho  = \frac{P}{{RT}} = \frac{{1.01325x{{10}^5}}}{{287}}(288) = 1.226\,kg/{m^3}\) Total Power \({P_{total}} = \rho A{V_1}^3/2\) Power density \(\begin{array}{l}\frac{{{P_{total}}}}{A} = \frac{1}{2}\rho {V_1}^3\\ = \frac{1}{2}(1.226){(15)^3}\\ = 2068.87{\mkern 1mu} W/{m^2}\end{array}\) Maximum power density \(\begin{array}{l}\frac{{{P_{\max }}}}{A} = \frac{8}{{27}}\rho A{V^3}_1\\ = \frac{8}{{27}}(1.226){(15)^3}\\ = 1226{\mkern 1mu} W/{m^2}\end{array}\) Assuming eff...

Design of Electrical Systems (Solved Numerical Problems)

Important note There is something wrong with this question paper. It seems that instead of "Design of Electrical Systems" the IEI has given problems from "Electrical Machines". You should raise a complaint to director_eea@ieindia.org in this regard. Numerical A 120 V DC shunt motor draws a current of 200A. The armature resistance is 0.02 ohms and the shunt field resistance is 30 ohms. Find back emf. If the lap wound armature has 90 slots with 4 conductors per slots, at what speed will the motor run when flux per pole is 0.04 Wb?​ (AMIE Summer 2023, 8 marks) Solution The back EMF (E b ) of a DC motor can be calculated using the formula: E b = V - I a R a   Given: V = 120 V I a = 200 A R a = 0.02 ohms Substituting the values into the formula: E b = 120 − 200 × 0.02 = 120 − 4​ = 116 V Now, let's calculate the speed (N) at which the motor will run using the given flux per pole (φ p ). The formula to calculate the speed of a DC motor is: N = 60×E b /(P×φ p ) Wh...