3i Infotech Placement: Sample Questions 1126 - 1128 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 1126

Edit

Write in Short

Short Answer▾

Which bit wise operator is suitable for turning off a particular bit in a number?

Explanation

  • The bitwise AND operator.

Function syntax:

BitAND (number1, number2)

  • Number1 is defined as 32-bit signed integer and number2 is also defined as 32-bit signed integer.
  • Bit functions operate on 32-bit signed integers, in the range -2147483648 - 2147483647.

Question 1127

Edit

Describe in Detail

Essay▾

What is the output of the following program?

  1. #include<stdio.h>
  2. main ()
  3. {
  4.     intx, y =2, z, a;
  5.     if (x =y%2) z =2;
  6.     a =2;
  7.     printf ( “%d %d” z, x);
  8. }

Explanation

  • In the program
Table Shows the Program
int x, y = 2, z, a;Declare and define the integer variables x, z, a and y = 2
if (x = y % 2) z = 2;
  • The value of y % 2 (remainder) is 0.
  • This is assigned to x.
  • The condition reduces to if (x) or in other words if (0) and z goes in initialized.
printf ( “% d % d” z, x) ;Printf prints the garbage value of z and x as 0
  • Thumb rule: check all control paths to write bug free code.

Question 1128

Edit

Describe in Detail

Essay▾

What is mutant?

Explanation

  • Mutant provides kernel mode or user mode in Windows NT, mutual exclusion with the notion of ownership.
  • Window NT is a Microsoft window personal computer operating system it is designed for users and businesses needing capacity.
  • The server is designed for business machines that need to provide services for network-attached computers.
  • Internal part of biology that mutation in a gene, it is possible to establish the normal function of the gene.

User Mode:

  • Executing code has no ability to directly access hardware or memory.
  • When run code in user mode delegate to system API to access hardware or memory.
  • The protection by this sort of isolation, crashes in user mode is always recoverable.

Kernel mode:

  • The executing code has complete and unrestricted access to the underlying hardware.
  • Execute any CPU instruction and reference any memory address.
  • Generally reserved for the lowest-level.

Developed by: