Tag: Ireland
-
C++ Programming MCQ – Constants Quizs Question
Q 1. The constants are also called as _____________A. constB. literalsC. preprocessorD. variables Show Answer Answer:-B. literals Explanation Other name for Constants are literals. Q 2. What are the parts of the literal constants?A. integer numeralsB. floating-point numeralsC. strings and boolean valuesD. all of the mentioned Show Answer Answer:-D. all of the mentioned Explanation Because…
-
C++ Programming Questions and Answers – Pointers into Arrays
Q 1. What is the meaning of the following declaration? int(*p[5])(); A. p is pointer to functionB. p is array of pointer to functionC. p is pointer to such function which return type is the arrayD. p is pointer to array of function Show Answer Answer:-B. p is array of pointer to function Explanation In…
-
C++ Programming Quizs Question and Answers – Sizes
C++ interview questions and answers focuses on “Sizes”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews)other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an…
-
C++ Programming Quizs Question and Answers – Floating Point Types
C++ programming questions focuses on “Floating Point Types”. One shall practice these advanced C++ questions to improve their C++ programming skills needed for various interviews competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our advanced…
-
C++ Programming Quizs Question and Answers – Booleans
C++ language interview questions and answers focuses on “Booleans”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++…
-
C++ Programming Quizs Question and Answers – Character Types
C++ interview questions and answers focuses on “Character Types”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++…
-
C++ Programming Questions and Answers – Integer Types
C++ interview questions and answers focuses on “Integer Types”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++ interview questions…
-
C++ Programming Questions and Answers – Static Constant Keyword
Q 1. What will be the output of the following C++ code? #include <iostream> using namespace std; class Test { static int x; public: Test() { x++; } static int getX() {return x;} }; int Test::x = 0; int main() { cout << Test::getX() << ” “; Test t[5]; cout << Test::getX(); } A. 0…
-
C++ Programming Questions and Answers – C++ Concepts – 3
Q 1. Which of the following statement is correct?A. Structure in C allows Constructor definitionB. Both allow Constructor definition C. Structure in C++ allows Constructor definitionD. C allows constructor definition while C++ does not Show Answer Answer:-C. Structure in C++ allows Constructor definition Explanation As C does not allow the programmer to define a function…
-
C++ Programming Questions and Answers – C++ vs C
Q 1. Which of the following feature is not provided by C?A. PointersB. ReferencesC. Structures D. Functions Show Answer Answer:-B. References Explanation References are introduced in C++. They are not present in C. Q 2. Which of the following type is provided by C++ but not C?A. intB. boolC. floatD. double Show Answer Answer:-B. bool…