C++ perguntas e respostas de entrevista
Diferencas relacionadas
Pergunta 121. What is the two main roles of Operating System?
As a resource manager
As a virtual machine
Pergunta 122. In the derived class, which data member of the base class are visible?
In the public and protected sections.
Pergunta 123. Could you tell something about the Unix System Kernel?
The kernel is the heart of the UNIX openrating system, it?s reponsible for controlling the computer?s resouces and scheduling user jobs so that each one gets its fair share of resources.
Pergunta 124. What are each of the standard files and what are they normally associated with?
They are the standard input file, the standard output file and the standard error file. The first is usually associated with the keyboard, the second and third are usually associated with the terminal screen.
Pergunta 125. Detemine the code below, tell me exectly how many times is the operation sum++ performed ?
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j?)
sum++;
(99 * 100)/2 = 4950
The sum++ is performed 4950 times.
Mais uteis segundo os usuarios:
- What is C++?
- What is function overloading and operator overloading?
- What is the difference between declaration and definition?
- How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
- What is the difference between realloc() and free()?