Tag: America

  • C++ Programming Questions and Answers – Pointers into Arrays

    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 MCQ – Arrays

    C++ Programming MCQ – Arrays

    Q 1. Which of the following correctly declares an array?A. int array; B. int array[10];C. array{10};D. array array[10]; Show Answer Answer:-B. int array[10]; Explanation Because array variable and values need to be declared after the datatype only. Q2. What is the index number of the last element of an array with 9 elements?A. 8B. 9C.…

  • C++ Programming Quizs Question and Answers – Sizes

    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 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++ 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++ 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++ 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

    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

    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++ Concepts – 2

    Q 1. Which of the following is the scope resolution operator?A. .B. *C. ::D. ~ Show Answer Answer:-C. :: Explanation :: operator is called scope resolution operator used for accessing a global variable from a function which is having the same name as the variable declared in the function. Q 2. What will be the…

You cannot copy content of this page