Thursday, 24 August 2023

COMPILER DESIGN

 Compiler Design

Q1. What is a compiler?

answer - A compiler is software that converts a higher-level language to a low-level language /machine code.

Q2. What are the phases of converting HHL to machine code?

answer - 







Wednesday, 23 August 2023

SOFTWARE ENGINEERING

Software Engineering

Q1. Can you explain what a program is?

Answer - A program is a set of instructions that perform a specific task.

Q2. What is software, and what does it involve?

Answer - Software is a program with proper documentation, including a user manual, maintenance guide, installation guide, licensing, and other official procedures.it is a commercial product.

Q3. Why is software engineering necessary?

Answer - While hardware development has improved significantly over time, software development has not kept up. Many software projects fail or go unused, resulting in a waste of time and money. To avoid this, a proper approach and ideology are needed to reduce the failure rate of software. Software engineering is an approach to software development that involves designing, implementing, testing, and maintaining software while also conducting advanced budget and work analysis.

Q4. Explain the characteristics of Software Engineering.
answer - 
  1. Correctness - the software should perform a task that was demanded, there might be better and more efficient tasks but the developer should stick with the requirement.
  2. Reliability - it should give accurate and the same results over the same output.
  3. Maintainable -  maintenance of the software should be possible 
  4. Usability - The user should use and understand the software with ease. the software should be comfortable in use.
  5. Efficiency - the software should work with optimal resources 
  6. Portability - The software should work in various environments and machines with minimal changes
  7. Scalability - the software should be able to handle the sudden increase in usage.
  8. Security - the data of the users should be safe and not interrupted by third parties.
  9. Modularity - The program is broken into small pieces so that various functions can be performed individually without the effect of others.
  10. Testable- The software should be able to go through various testing protocols
  11. Reusable - The software should be reused for similar operations with no significant changes



OPERATING SYSTEM

 Q1. What is the Operating system?

answer - An operating system is software that handles all the resources of a computer system, including hardware and software. It creates an environment for the user to run their programs efficiently and conveniently by simplifying the underlying hardware complexity and serving as a resource manager.

examples - 

                                                                               


Q2. Why do you need OS? (hence the function of OS)

answer - 1)  Manage Resources - 

Let's say we have two apps, App1 and App2. When we start App1, it takes control of the necessary hardware and starts working. However, if we try to run App2 while App1 is still running, we won't be able to access it as App1 is using up all the resources and the new app will freeze. This problem is solved by the operating system, which divides the resources based on each app's requirements.



                2) Manage Security-

Currently, the management of resources is in place, but what if App1 attempts to manipulate the data of App2? Such actions could alter the user's data, rendering it unreliable. Therefore, the Operating System (OS) is responsible for ensuring the security of data and the functionality of parallel-running programs.



                3) Make Software Lightweight-

When a system lacks its own operating system files, there is a need to create additional resources and security management files for individual applications. This can cause the size of applications to increase to more than 100%. However, an operating system resolves this issue, as it is a basic requirement that can be shared.




Sunday, 20 September 2020

Wednesday, 19 August 2020

Difference between 2 Stroke Engine and 4 Stroke Engine



 2 STROKE ENGINE

4 STROKE ENGINE

The cycle is completed in 2 strokes of the piston

The cycle is completed in 4 strokes of the piston

It has one power stroke in 1 cycle of crankshaft

It has one power stroke in 2 cycle of crankshaft

It has ports

It has valves

Smaller flywheel

Bigger flywheel

Greater cooling and lubrication required

Less requirement of cooling and lubrication required

Parts are cheap in cost and for same power  light weight engine is requires

Parts are cheap in cost and for the same power  heavy  weight engine is required

Uniform torque distribution

Non-uniform torque distribution

Less volumetric and thermal efficiency

More volumetric and thermal efficiency

Simple in design

Complex in design

Less in demand

More in demand

Used in lawn movers, scooters, motorcycles, mopeds, etc.

Used in high efficiency motor cycles, cars ,buses, trucks, aeroplanes, power generation, etc.

 

 



 



Tuesday, 18 August 2020

Important terminology of IC engine




BORE(D)

The inside diameter of engine cylinder is known as bore. 
It is measured in mm.
In the bore piston is fitted.



PISTON AREA (A)::-

 The area of circle of diameter equal to the cylinder bore.

STROKE(L):-

When piston is in reciprocating motion, the distance travelled by the piston from one dead centre position to the other dead centre position



DEAD CENTERS:-

Extreme positions within which piston do its reciprocating motion.

1.TOP DEAD CENTER(TDC)-

Top most position of the piston towards the cover end side of the engine.

2.BOTTOM DEAD CENTER(BDC)-

Lower most position of the piston towards the crank end of the engine.



CRANK THROW/CRANK RADIUS:-

The distance between the center of the main shaft and center of the crank-pin is known as crank throw or crank radius.

SWEPT VOLUME(Vs):-

The volume of fluid that can be comprised within the top dead centers and the bottom dead centers.
Vs=A × L

CLEARANCE VOLUME(Vc):-

The volume that can be comprised within top dead center and the head of the cylinder.
Piston never enters this portion of cylinder.

TOTAL CYLINDER VOLUME(V):-

Sum of swept volume and clearance volume
Total cylinder volume = Vs + Vc



COMPRESSION RATIO(r):-

It is the ratio of total cylinder volume to the clearance volume.
r = Vs+Vc/Vc  
compression ratio of Petrol- 5:1 - 9:1
and for                     Diesel- 14:1 - 22:1


COMPILER DESIGN

 Compiler Design Q1. What is a compiler? answer - A compiler is software that converts a higher-level language to a low-level language /mach...