3i Infotech Papers: Sample Questions 971 - 974 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 971

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Write a program to interchange 2 variables without using the third one.

Explanation

  1. #include<stdio.h>
  2. #include<conio.h>
  3. main()
  4. {
  5.     int a=10,b=20;
  6.     clrscr();
  7.     printf(“before swap a=%d b=%d”, ab);
  8.     a=a+b
  9.     b=a-b
  10.     a=a-b
  11.     printf(After swap a=%d b=%d”, ab);
  12.     getch();
  13. }

OUTPUT

Before swap a = 10 b = 20

After swap a = 20 b = 10

Question number: 972

» Languages » Java

Short Answer Question▾

Write in Short

Is there any tag in html to upload and download files?

Explanation

Yes, < input type=”file” > is there tag in html to upload and download files.

Question number: 973

» Languages » Java

Essay Question▾

Describe in Detail

Header file ________

Explanation

Understanding of C formate of header file.

Understanding of C Formate of Header File.

Understanding of C formate of header file.

  • A header file is a file containing C declarations and macro definitions to share between several source files.

  • Included using C pre-processing directive ‘include’.

Header Files Serve Two Purposes:

  • System header files declare the interfaces to parts of the operating system.

  • Supply declarations and definitions to invoke system calls and libraries.

  • Programmers’ header files contain declarations for interfaces between the source files of their program.

  • Group of related declarations and macro definitions needed in several different source files are combined in header file.

Question number: 974

» Languages » Assembly Language

MCQ▾

Question

Memory Management in Operating Systems is done by

Choices

Choice (4) Response

a.

Kernel

b.

Memory Management Unit

c.

Memory management software of the Operating System

d.

Question does not provide sufficient data or is vague

Answer

c.

Explanation

  • Memory management in operating systems is done by memory management part of the Operating System.

  • This part also moves processes back and forth between main memory and disk.

  • Keeps track of each and every memory location- allocated or free.

  • There are two task of memory management:

  1. When the program requests a block of memory, a part of the memory manager called the allocator assigns that block to the program
  2. When a program no longer needs previously allocated memory block- it is made available for assignment
Two task of memory management

Two Task of Memory Management

Two task of memory management