Pages

Thursday, August 15, 2024

What is anti- Debugging

 

Anti- debugging is how we can stop somebody from debugging our system and getting all the information out of your subsystem.

Tuesday, August 13, 2024

Why do our ears pop up when we go to higher altitudes or travel in air plane?

Ans : Due to the weight of the molecules in the upper layers of the atmosphere and the force of gravity exerted by the earth, the air molecules are pushed down near the surface and the density goes on decreasing as we go higher where air molecules are far away from each other.

Friday, August 9, 2024

What is the work of a control bus in a processor

 1. The control bus takes care of the logistics of data and commands 

2. It controls the direction of data 

3. Determines which element and when will it send data on the data bus

4. Carries the timing and control signals

Thursday, August 8, 2024

What happens when asteroids collide with planets?

Ans: When asteroids collide with planets a large amount of energy is released in the form of heat, light and sound. This is because of the immense impact which is a result of the large amount of kinetic energy possessed by the asteroids and the planets by virtue of their huge masses and great velocities .

Wednesday, August 7, 2024

Why is an idle task required in RTOS

1. System stability

Refraining from keeping the system without any task running

2. Power management 

Idle task can be used to implement low power or sleep functions

3. Resource management 

Idle task can be used to implement memory freeing functions and other maintenance activities 

Tuesday, August 6, 2024

How is a rainbow formed?

Ans: A rainbow appears after heavy rainfall when the sun is in the horizon . It is caused due to the dispersion of sunlight.
When the sunlight passes through the atmosphere each raindrop acts as a tiny glass prism and thus splits the sunlight into a spectrum .
Thus a beautiful rainbow is formed in the sky.

Monday, August 5, 2024

Why does steam cause more severe burns than boiling water?

Ans: Steam causes more severe burns than boiling water because the specific latent heat of steam is 2260 J/g which means every gram of steam that condenses on the skin gives off 2260 J of extra heat.

Sunday, August 4, 2024

Why does a fish regardless of its size feel the same pressure at the same depth in water?

Ans: This is because of the pressure exerted by liquid does not depend on the surface area of the object immersed in water but only depends on the depth which acts from all directions .

Saturday, August 3, 2024

What is a Race condition

 In parallel programming, if 2 threads try to access the same shared resource simultaneously then this can lead to unpredictable behaviour or errors this is called race condition

Friday, August 2, 2024

What are the phases of a compiler

 1. Lexical analysis (Scanning)

Breaking out the source code into token(keywords, identifiers, operators and literals

The stream of tokens acts as an input to the next phase 

2. Syntax analysis(parsing )

Checks the sequence of the tokens for syntactic errors as per the Grammer rules of the programming language

Constructs a parse tree (syntax) tree that represents the syntactic structure of the program 

3. Semantic analysis

Checks the meaning of each statement as per the language rules 

Ensures the the declaration, types and usage is variables and functions are semantically correct 

Generates an annoyed syntax tree ( AST) with type informs and references 

Thursday, August 1, 2024

What is NVIC

 NVIC or Nested vector interrupt controller is used for

1. Controlling the interrupt traffic that comes to the controller 

2. The configuration of external interrupts 

3. Enabling , Disabling and pending interrupts

4. Priority and Priority grouping can also be done by the NVIC

5. Preempting a low priority interrupt when a high priority interrupt arrives

Wednesday, July 31, 2024

What is a memory map

1. A file that contains mapping of different regions in the addressable memory location range.

2. Memory maps are fixed in the processor designs.

3. Explains the mapping of various peripheral registers.

4. Processor addressable memory ranges depend on the size of the address bus.

Tuesday, July 30, 2024

What is a Reset handler

 A Reset handler is a program or a assembly function that carries out all the required initialisations before calling the main function 

The Reset handler is implemented in the Startup file of the code.

Monday, July 29, 2024

How is a high tide caused?

Ans: The level of water in the sea changes because of the gravitational force exerted by the moon.
Water directly under the moon gets pulled towards the moon and the level of water there goes up causing high tide at that place.

Saturday, July 27, 2024

Why do astronauts wear specially designed pressure suits?

Ans : The astronauts wear specially designed pressure suits as otherwise their bodies will burst because of high pressure of dissolved Oxygen in their blood.

Friday, July 26, 2024

Find the Output of the C program

  


Output

20
40

Explanation
the  printf will print the local declaration to that block 

Wednesday, July 24, 2024

Find the output of the C program

 


Output
20

Explanation:
the local declaration will be printed as it lies within the block that is {}

 

What is anti- Debugging

  Anti- debugging is how we can stop somebody from debugging our system and getting all the information out of your subsystem.