Explain array implementation of list. 5 marks
An array implementation of a list involves using a contiguous block of memory to store elements, allowing for efficient access and manipulation. Here’s a breakdown of the key aspects of this implementation:
1.) Structure:
°An array is a fixed-size data structure that holds elements of the same type. In the context of a list, an array can be used to store the list elements in sequential memory locations.
°The size of the array is typically defined
Define ADT. Explain array as an ADT? (2+3 marks)
An Abstract Data Type (ADT) is a conceptual model that defines a set of operations and behaviors for a data structure, without specifying the underlying implementation details. Arrays, as an ADT, define how data is organized and accessed through indices, but not how it's actually stored in memory.
Arrays as an ADT
-An array ADT defines a collection of elements that can be accessed by their index (position).
-Common operations on an array ADT
Nutrition: Nutrition is the biochemical and physiological processes by which an organism uses food support its life.
Health: Health is a state of complete physical, mental and social well being and absence of disease.
Type of Health:
1. Physical Health 2. Social Health 3. Spiritual Health 4. Emotional Health
1. Physical Health: It is define as the state in which every cell and every organ is functioning at optimum capicity and imperfect hormony will the rest of the body. The physical
Q1) Salient Features of the Indian Constitution: It is a written and lengthy Constitution, one of the longest in the world. It has a blend of rigidity and flexibility, where some parts are easily amendable while others need a special majority. It adopts the Parliamentary form of government modeled after the British system. The Constitution provides a federal system with a unitary bias, meaning powers are divided between the Centre and States but the Centre holds dominance. It ensures an independent
Written and Lengthy Constitution – It’s one of the longest constitutions in the world.
Blend of Rigidity and Flexibility – Some parts can be amended easily, others require a special majority.
Parliamentary Form of Government – Modeled after the British system.
Federal System with Unitary Bias – Powers are divided between Centre and States, but Centre holds more power.
Independent Judiciary – Judiciary is impartial and has the
A Message Authentication Code (MAC) is a small block of data generated using a secret key and the original message. It is used to ensure data integrity and authenticity.
The sender computes the MAC using a secret key and sends it along with the message.
The receiver re-computes the MAC using the same key and compares it with the received MAC.
If they match, the message is considered authentic and unaltered.
...MAC ≠ Hash
MAC uses a key, while a regular hash
a) DividendA dividend is a portion of a company’s profits distributed to its shareholders. It is decided by the Board of Directors and approved by the shareholders at the Annual General Meeting (AGM).Types of dividend include:1.Interim Dividend – Declared before the AGM.2.Final Dividend – Declared at the AGM after the financial year ends.As per the Companies Act, 2013, dividend can only be paid:a)From current year’s profits after depreciationb)From past reserves (in specific cases)c)Not
OS decides: Which programs live in mem, where they go, how to protect, what to do when mem runs out. Parkinson’s Law: Programs expand to fill the mem available to hold them. 3 Models for organizing mem: A(User on top, RAM on bottom, Pros(Fast execution)Cons(No protection (used in MS-DOS)), B(ROM on top, user on bottom P(OS protected Slow) C(not flexible)), C( Drivers at top, user in middle, RAM at bottom P(Fast & secure) C(Used in Windows 11). Base: Where a process starts in mem. Limit:
1.Which two statements about firewalls are true? They can be used with an intrusion prevention system. They can limit unauthorized user access to protect data.
2.When considering network security, what is the most valuable asset of an organization?data 3. Which risk management plan involves discontinuing an activity that creates a risk?risk avoidance 4.Refer to the exhibit. Which user-mode password has just been set?R I#contig R1(config)# line vty 0 15 R1 (config-line)#password CIscO R1 (...