Questions
A ____________ is a named location on a disk where files are stored
Folder
Pod
Version
None of the above
What is the full form of CPU?
Central Processing Unit
Control Processing Unit
Control Principle Unit
All of the above
What can be considered as basic building blocks of a digital circuit ?
Logic Gate
Diode
Semi Conductor
CMOS
Breadth First Search graph and description
Step | Traversal | Description |
1 | Initialize the queue | |
2 | We start from visiting S (starting node), and mark it as visited | |
3 | We then see an unvisited adjacent node from S. In this example, we have three nodes but alphabetically we choose A, mark it as visited and enqueue it. | |
4 | Next, the unvisited adjacent node from S is B. We mark it as visited and enqueue it. | |
5 | Next, the unvisited adjacent node from S is C. We mark it as visited and enqueue it. | |
6 | Now, S is left with no unvisited adjacent nodes. So, we dequeue and find A. | |
7 | From A we have D as unvisited adjacent node. We mark it as visited and enqueue it |
At this stage, we are left with no unmarked (unvisited) nodes. But as per the algorithm we keep on dequeuing in order to get all unvisited nodes. When the queue gets emptied, the program is over.
Assertions
An assertion is any condition that the database must always satisfy. Domain constraints and referential-integrity constraints are special forms of assertions. However, there are many constraints that we cannot express by using only these special forms. For example, “Every department must have at least five courses offered every semester” must be expressed as an assertion. When an assertion is created, the system tests it for validity. If the assertion is valid, then any future modification to the database is allowed only if it does not cause that assertion to be violated.
Differentiate Value types with Reference types ?
Value Types:
These data types store their data Directly as Values in memory. Includes,
Numeric Types(int32, short, single)
Structures (Custom data types based On System.ValyeType)
Enumerations (Custom types that represent a defined set of values)
Boolean char.
Can be accessed directly
Reference Types:
These data types store reference to another memory location that contains the data. Includes
Object
String
Arrays
Can be accessed through the members of the class.
What is a delegate ?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.
Entity model
What is simplified view of transactions ?
1.We ignore operations other than read and write instructions.
2.We assume that transactions may perform arbitary computations on data in local buffers in between reads and writes.
3.Our simplified schedules consist of only read and write instructions.