Computing & Informatics - short answer type questions from AMIE exams

What is the octal equivalent of the decimal number 1000?

(1000)10 = (1750)8

Step by step solution

Step 1: Divide (1000)10 successively by 8 until the quotient is 0:

1000/8 = 125, remainder is 0
125/8 = 15, remainder is 5
15/8 = 1, remainder is 7
1/8 = 0, remainder is 1

Step 2: Read from the bottom (MSB) to top (LSB) as 1750.


What will be the output of the following logic circuit when A, B and C are 1, 0 and 0 respectively.


The output will be 1.

Name the input device that can help a computer to read printed documents.
Scanner with an OCR software

If more than one printer has been attached to a computer, how can you direct your output to a specific printer?
Go to networked places and choose a specific printer. Then give print command from document to be printed.

What is the range of numbers that can be assigned to a variable declared as an unsigned integer?
0 to 4294967295

What will be the output generated by the following code?
ink k = 5;
ink i = 0;
if (k) i ++;
cout << i
The output will be 1.

What output will be generated?
char c = ‘A’;
int i;
for (i = 0; i < 3 i++)
cout << c++;
The output will be BCD.

What will be the implication if data members of a class are declared as public members?
Public means all the class members declared under public will be available to everyone. The data members and member functions declared public can be accessed by other classes too. Hence there are chances that they might change them. So the key members must not be declared public.

What will be the output of the following data?
int x [ ] = {3, 5, 8};
cout <<*x;
cout <<* (x + 1);
Output will be 3, 5

Why is the following code illegal?
int x [ ] = {2, 4, 6};
cout <<*x;
cout <<* px ++;
The array name is a pointer constant hence we can not increment it. Only a pointer variable can be incremented.

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

Comments

Popular posts from this blog

Thermodynamics (Compressible Flow)

Thermodynamics (Fuels and Combustions)

Steel Structures - Plate Girders