Object-Orientation Concepts Interview Questions

Sub Category
Questions
Answers
Last Updated
0
0
Sep 17th, 2019
0
0
Sep 17th, 2019
49
218
Dec 8th, 2018
269
1187
Jan 9th, 2024
0
0
Sep 17th, 2019
0
0
Sep 17th, 2019
17
33
Dec 17th, 2015
358
1788
Jul 25th, 2018
0
0
Sep 17th, 2019
25
87
Apr 19th, 2016

Showing Questions 21 - 24 of 24 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    What is virtual Memory under Linux?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Hitesh

    • Jan 3rd, 2007


    Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory can be used for another purpose. When the original contents are needed again, they are read back into memory. This is all made completely transparent to the user; programs running under Linux only see the larger amount of memory available and don't notice that parts of them reside on the disk from time to time. Of course, reading and writing the hard disk is slower (on the order of a thousand times slower) than using real memory, so the programs don't run as fast. The part of the hard disk that is used as virtual memory is called the swap space

    maureenash

    • Aug 17th, 2016

    Virtual Memory Usage from Java under Linux, too much memory used. It is using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write th...

    Hitesh

    • Jan 3rd, 2007

    Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused ...

  •  

    Write a C program to reverse the string without using strrev() function?

    Star Read Best Answer

    Editorial / Best Answer

    Rohan  

    • Member Since Nov-2005 | Feb 18th, 2006


    #include <stdio.h>
    #include <conio.h>
    #include <string.h>

    void main()
    {
       char *str;
       int i,len;

      //not using any temp variable and assume we can use only string array and   length

       printf("Enter String : ");
       scanf("%s",str);
       len=strlen(str)-1;
       for(i=0;i<strlen(str)/2;i++)
       {
             str[i]+=str[len];
             str[len]=str[i]-str[len];
             str[i]=str[i]-str[len--];
       }
       printf("Reverse String is : %s",str);
       getch();
    }

    naveen

    • Jun 17th, 2017

    Code
    1. #include<stdio.h>
    2. #include<conio.h>
    3. #include<string.h>
    4. "enter string: ");
    5. scanf("%s""reverse string : %s" ,str);
    6. getch();
    7. }
    8.  

    Gurjyot Singh

    • Dec 5th, 2016

    Here`s the answer

    Code
    1. #include<stdio.h>
    2. #include<conio.h>
    3. #include<string.h>
    4. "Enter String :
    5. ""%c"

  •  

    Structure Padding

    How can I use Structure padding and I want to re-use the remaining memory further?
    ex: struct num {
    char ch;
    int i;
    char s;
    };

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Mantu

    • Dec 6th, 2017


    By using #pragma pack(1) we can reduce the size of structure.

    Code
    1. #pragma pack(1)
    2. "Size of num structure is %d "

    Mantu

    • Dec 6th, 2017

    By using #pragma pack(1) we can reduce the size of structure.

    Code
    1. #pragma pack(1)
    2. "Size of num structure is %d "

  •  

    Basic elements of a picture in volume graphics

    The basic elements of a picture in volume graphics is 1. pixel 2. volsel 3. voxel 4. either pixel or voxel

    Star Read Best Answer

    Editorial / Best Answer

    Sandhya.Kishan  

    • Member Since Mar-2012 | Jul 4th, 2012


    The basic elements of a picture in volume graphics is voxel.

    upasi

    • Apr 26th, 2018

    1. pixel

    mahata

    • Feb 13th, 2016

    3. Voxel

Showing Questions 21 - 24 of 24 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: