Computing & Informatics - short answer type questions from AMIE exams

Evaluate the following C expression, and explain your answer:
5 + 2/3 *5 - 4/3 
5 + 2/3*5 – 4/3 = 5 + 0*5 – 1 = 4

Name two application layer protocols.
TELENET, SMTP

What are the typical sizes of the main memory and hard disk of a modern desktop computer?
Main memory = 4, 8 GB DRAM
Hard disk = 500 GB , 1 TB

Is a two-dimensional array passed as a value or reference argument to a function? Explain your answer by writing a function prototype illustrating this.
The two-dimensional array passed as a reference argument to a function.

Define a C structure named str that has integer i, an integer array of size 10 called arr, and a character c as its members.
struct str
{
int i;
int arr [10];
char c;
}


The size of the address bus and data bus of a CPU is 16 bits and 32 bits, respectively. What can be said about the size of its internal registers and address space?
Size of internal registers = 32 bits
Address space = 2¹⁶ = 64 K


What is the full form of SMTP? For what application is it used?
Simple Mail Transfer Protocol. Used for email.


Mention two advantages of a DBMS over file storage of data.
Controlling Data Redundancy, Sharing of Data, Data Consistency etc.

What is a foreign key in an RDBMS?
A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It acts as a cross-reference between tables because it references the primary key of another table, thereby establishing a link between them.

What is the binary representation of 0.125 (decimal)?
0.125 (decimal) = 0.001 (binary)

Step 1: We multiply 0.125 by 2 and take the integer part
0.125 x 2 = 0.250
Integer part = 0
Fractional part = 0.250
As the fractional part is not equal to 0 so we copy it to the next step.

Step 2: We multiply 0.250 by 2 and take the integer part
0.250 x 2 = 0.500
Integer part = 0
Fractional part = 0.500
As the fractional part is not equal to 0 so we copy it to the next step.

Step 3: We multiply 0.500 by 2 and take the integer part
0.500 x 2 = 1.000
Integer part = 1
Fractional part = 0
Now the fractional part is 0 so, we stop here.

Step 4: The calculated integer part is as followed.
Step 1: 0
Step 2: 0
Step 3: 1

To find the binary we have to scan the integer part from top
So, 0.125 (decimal) = 0.001 (binary)

---
The study material for AMIE/B Tech/Junior Engineer exams is available at https://amiestudycircle.com

Comments