1. What
is the output of the following statement:
printf (“%-3d”,12345);
(A) 1 2 3 (B) -1 2 3
(C) 1 2 3 4 5 (D) 12
Answer: C
Explanation:
printf statement would print 12345.
2. A
single character input from the keyboard can be obtained by using the function.
(A) printf () (B) scanf ()
(C) putchar () (D) getchar ()
Answer: D
Explanation:
Reading a single character can be done by
using the function getchar().
3. Which
of the following language is a subset of C++ language?
(A) C language (B) Java Language
(C) C# language (D) B language
Answer: A
4. Which
of the following correctly describes C++ language?
(A) Statically typed language
(B) Dynamically typed language
(C) Both Statically and dynamically typed
language
(D) Type-less language
Answer: A
5. Which
of the following keyword supports dynamic method resolution?
(A) Abstract (B) Virtual
(C) Dynamic (D) Typeid
Answer: B
6. Which
of the following concept is not supported by C++?
(A) Exception Handling (B)
Reflection
(C) Operator Overloading (D)
Namespaces
Answer: B
7. Which
of the following language feature is not an access specifier in C++?
(A) Public (B) Private
(C) Protected (D) Internal
Answer: D
8. What
does STL stand for?
(A) Simple Template Library (B) Standard Template Library
(C) Static Type Library (D) Single Type-based
Library
Answer: B
9. Which
of the following is the most common way of implementing C++?
(A) C++ programs are directly compiled into
native code by a compiler
(B) C++ programs are first compiled to
intermediate code by a compiler and then executed by a virtual machine
(C) C++ programs are interpreted by an
interpreter
(D) A C++ editor directly compiles and
executes the program
Answer: A
10. What
is the implicit pointer that is passed as the first argument for non-static
member functions?
(A) self pointer (B) std::auto_ptr pointer
(C) Myself pointer (D) this pointer
Answer: D
4 Comments
This post was quite awesome and interesting to read. Congrats for your work. Thanks a lot for providing this with us. Keep on updating this with us regularly.
ReplyDeleteGood Post! Thank you so much for sharing this one,.. it was so good to read and useful to improve my knowledge as updated one, keep blogging...
ReplyDeleteOracle DBA Online Training
It is very difficult to accumulate all of your data but yes, as far as my knowledge is concerned cloud hosting providers do provide rolling data back. So I don’t think that there is any such problem in this.thanks a lot.
ReplyDeleteC and C++ Training Institute in chennai | C and C++ Training Institute in anna nagar | C and C++ Training Institute in omr | C and C++ Training Institute in porur | C and C++ Training Institute in tambaram | C and C++ Training Institute in velachery
Need professional WordPress Web Design Services? We're experts in developing attractive mobile-friendly WordPress websites for businesses. Contact us today! https://just99marketing.com/wordpress-web-design
ReplyDelete