-
-
-
-
Which one of the following represents a correct and safe declaration of NULL ?
a) typedef((void *)0) NULL; b) typedef NULL(char *)0; c) #define NULL((void *)0) d) #define NULL((char*)0)
-
-
-
What does the command shutdown do?
log out all the processes of the computer
-
-
-
-
-
-
Remove a File
How will you remove a file with the name '-somethink'?
-
-
Which of the following statements is true when a derivation inherits both a virtual and non-virtual instance of a base class ?
a) Each derived class object has base objects only from the non virtual instance b) Each base class object has derived objects only from the non-virtual instance c) Each derived class object has base objects only from the virtual instance d) Each derived class object has a base object from the virtual instance and a base object from non-virtual instance.
-
#include <iostraem> Referring to the sample code above ,which of the following could you use to make the standards I/O Stream classes accessible without requiring the scope resolution operator ?
A) using namespace std::iostream b) using namespace std; c) using namespace iostream ; d) using iostream;
-
Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
A) int *ptr = (int *) calloc(10,sizeof(int)); b) int *ptr = (int *) alloc( 10*sizeof(int)); c) int *ptr = (int *) malloc( 10*sizeof(int)); d) int *ptr = (int *)calloc(10*sizeof(int));
-
-
-
Languages Interview Questions
Sub Category
Questions
Answers
Last Updated
Ans