Question 186
[Q.86] In C, what is the output of sizeof('A') on a standard C compiler where int is 4 bytes?
Detailed Solution
In C, character literals like 'A' have type int (4 bytes); in C++ they have type char (1 byte).
[Q.86] In C, what is the output of sizeof('A') on a standard C compiler where int is 4 bytes?
In C, character literals like 'A' have type int (4 bytes); in C++ they have type char (1 byte).
[Q.87] Which graph algorithm finds the Minimum Spanning Tree (MST) by growing a single tree vertex by vertex?
Prim's grows MST from a start node; Kruskal's sorts edges globally.
[Q.88] What is the main characteristic of a Deadlock 'Safe State'?
Safe state guarantees a path to allocate resources without deadlock.
[Q.89] In Database Systems, what is a 'Derived Attribute'?
Example: Age derived from Date_of_Birth.
[Q.90] Which OSI layer deals with framing, physical addressing (MAC), and error detection on a single link?
Data Link layer creates frames, adds MAC addresses, and detects framing errors.