136) What is the full form of STL?
A. Standard template library.
B. System template library.
C. Standard topics library.
D. None of the above.
Answer : A
137) What is the output of the following program?
#include<iostream>
using namespace std;
void f() {
static int i;
++i;
cout<<i<<” “;
}
main() {
f();
f();
f();
}
A. 1 1 1
B. 0 0 0
C. 3 2 1
D. 1 2 3
Answer : D
138) Compiler generates ___ file
A. Executable code
B. Object code
C. Assembly code
D. None of the above.
Answer : B
139) The default executable generation on UNIX for a C++ program is ___
A. a.exe
B. a
C. a.out
D. out.a
Answer : C
140) What is the output of the following program?
#include<iostream>
#include<string.h>
using namespace std;
main() {
char s[] = “Hello\0Hi”;
cout<<strlen(s)<<” “<<sizeof(s);
}
A. 5 9
B. 7 20
C. 5 20
D. 8 20
Answer : A