add

About Me

My photo
Oracle Apps - Techno Functional consultant

Tuesday, September 13

C++ Qs

1) Which of the following operators cannot be overloaded in C++?

A) ?: B)[] C) - D) None of These

2) Which constructor is invalid for class cat?
A) void cat :: cat() { feet=4;} B)cat::cat(int f){feet=f;}
C) cat::cat(void){feet=8;} D) cat::cat(int f){this->feet=f;}

3) Typical user defined signal handler functions perform actions such as

A) abort process immediately without further ado
B) Perform minor house keeping prior to resumption
C) Roll back process state to last checkpoint
D) Tidy up to process abortion

A) 1&2 B) 2 & 4 C) 3 D) 4

4) What is the name given to the process initizlizing a microcomputer with its OS?
A) Cold Booting B) Booting C) Warm Booting D) None of these

5) Desirable attributes for memory management include
A) Protection- such memory should be protected against being written on by other processes
B) Encryption- ability to encrypt data with a randomly selected key that is discarded after use without being disclosed so that data can never read again.
C)Uniform access rates-ability to retard faster data fetch rates so that all data fetches are uniformly performed at the least fast data fetch rate D)none of these

6)Major expressions used with find command to select file is it has been accessed in more than 375 days,is

A)-a time +365 B) -m time +365 C)-a time -365 D) -m time -365

7)Which of the following is not a basic computer network topology?
A)Train topology B)Bus topology C)star topology D)ring topology

8) which file contains all permanent information and is updated during processing by transactions of data?
A) Master File B) Local File C) Parent File D) Primary File

9) Which set option is used with vi editor to display line numbers on screen?
A) nm B) nu C)ic D)li

10) Assuming you have the environment variable ENV=.kshrc set, what is the entry in ur .kshrc or .profile that will save up to ur last 200 commands in a history list?

A) HISTSIZE=200 B) set history 200 C) HISTORY=200 D) setenv history 200

11) You have 1MB of memory left on the HDD and when booting the system crashes. What is the reason?
A) Not enough synchronous buffer
B) Not enough contiguous memory in virtual memory
C) Not enough space on the hard drive for the swap file.
D) Not enough space on the hard drive for working memory.

12) How do I remove a file with the name ‘-something’ ?

A) use the “–” flag to rm B) Use “##” flag to rm
C) Use the “-” flag to rm D) Use the “!” flag to rm.

13) The customer is an internet search engine with hits from global customers exceeding 10 million per day. You identify Knowledge Management as the driving business issue. Which feature is most imp to this customer solution?

A) Single system image B) Speed and performance
C) Very large memory, very large database D) H/W Partitioning

14) Unlike function templates, when instantiating a class template, you must explicitly instantiate the class by giving?

A) The parameters for the class templates B) The arguments for the class templates C) The variables for the class templates D) None

15) In private inheritance derived class members can access base class members that are 1) Public 2) Private 3) Protected

A) 1 & 2 B) 1 & 3 C) 2 & 3 D) 1,2 & 3

16) The output of an OR Gate is LOW when

A) All inputs are LOW B) Any Input is LOW C)Any input is high
D) All inputs are HIGH

1. what is the most commonly used display device in monitors. (CRT).

2. main()
{
int i=6720,j=4;

while(i%j= =0)
{
i=i/j;
j=j+1;
}
}
What is the value of j at the end of the loop. (9);

3. What is the output of the program

4. # define Max( if (x
main()
{
int x,y;
if (x
Max(x,y);
else
printf( “x is not greater than y”);
}
( Iam not sure about the Q, but the ans is compile time error);

5. 1Q on pointers like a[2][2] then how can u represent the valu of a[2][1] by using pointers. ( *((a+2)+1) . Iam not sure about the ans).

6. what is wrong about stacks ( Ans is ” Stack is referred to as fifo”);


No comments: