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 the main difference between portability and Platform independent ?

    Star Read Best Answer

    Editorial / Best Answer

    Lecks  

    • Member Since Feb-2010 | Feb 22nd, 2010


    I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the given environment it needs to run in later.

    An example of a portability issue is the creation of Unix. The first version was not portable. It was specific only to that computer's architecture. Unix became portable when it was rewritten in C. The new version written in C was portable because C served as a "translator", if you will, between what underlying architecture or devices were physically in the computer and what unix wanted them to do.

    Lecks

    • Feb 22nd, 2010

    I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the give...

    akki21

    • Feb 21st, 2007

    "portability" refers to the ability of a system to support a particular software.it depends on the system configurations."platform independent"JAVA is a platform independent software. it need not be installed for the processing of its program

  •  

    What is actually meant for BUFFER? how does it work

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Ankur

    • Jul 14th, 2007


    Buffer is something that is used to hold the data temporarly.
    Ex-
    If we are watching any thing online,then buffering of data takes place i.e for sometime data get stored in buffer then processed.

    sathiyapriya

    • Feb 8th, 2015

    It is like a storage area

    Avinash kumar

    • Jan 23rd, 2015

    A buffer is a memory space that is used to hold different data items temporarily. its used for communication of different processes.I.e. Interprocess communication. The most relevant example is , play...

  •  

    Can we execute any simple program without installing any Operating system?

    I think no,can u suggest?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: kunal kaushal

    • Jul 24th, 2006


    No! we can not run any simple program with out using any interface such as operatin systen or System software. but in some cases like Machine level languge or firmware run without any software because it directlly communicate with hardware and makes the hardware active so other program can run using his platform.

    Siba Ranjan Biswal

    • Feb 11th, 2014

    Yes a program can be executed with out operating system..for example the boot executable program runs in systems while no operating system is available prior to it.

  •  

    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.  
    5. void main()
    6. {
    7. char str[10],temp;
    8. int i,len;
    9. printf("enter string: ");
    10. scanf("%s",str);
    11. len=strlen(str)-1;
    12. for(i=0;i<strlen(str)/2;i++)
    13. {
    14. temp=str[i];
    15. str[i]=str[len];
    16. str[len--]=temp;
    17. }
    18. printf("reverse string : %s" ,str);
    19. getch();
    20. }
    21.  

    Gurjyot Singh

    • Dec 5th, 2016

    Here`s the answer

    Code
    1. #include<stdio.h>
    2. #include<conio.h>
    3. #include<string.h>
    4. int main()
    5. {
    6.         char A[20];
    7.         int i;int C=0;
    8.         printf("Enter String :
    9. ");
    10.         gets(A);
    11.         for(i=0;A[i]!=;i++)
    12.         {
    13.                 C++;
    14.         }
    15.         for(A[C]=;C>=0;C--)
    16.         {
    17.                 printf("%c",A[C]);
    18.         }
    19.  
    20.         getch();
    21.         return 0;
    22. }
    23.  

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