Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • C++

Frequently Asked C++ interview questions and answers for freshers

C++ Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 260
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

C++ Question Topics

    Category (1)

    General Ability (3)

  • General Knowledge (1)
  • Logical Reasoning (5)

  • Blood Relations (3)
  • Coding Decoding (1)
  • General Mental Ability (1)
  • Numerical Ability (1)

  • Area and Volume (1)
  • Programming (67)

  • Basics (1)
  • Database (2)
  • Definition (16)
  • Program (14)
  • Technical (32)
  • Variables (1)
Keep an EYE (0)
Solved Question (1) UnSolved Question (447)
Pages: 45123456789NextLast
Advertisements

(#M40028549) C++ QUESTION Technical Question on C++ and OOPS Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output of following program?

main()
{
int i=1;
for(;i<=32768;i++)
printf("%d",i);
}

Options
1) 32767
2) infinite loop
3) 32768
4) None of the above

Asked In C++ MAN (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (7)   (4) Submit Your Solution Program

(#M40028555) C++ QUESTION Technical Question on C++ and OOPS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following statements is correct?

Options
1) First time method of a class is called, the constructor method is called.
2) Every time method of a class is called, the constructor method is called.
3) Every time an instance of a class is created, the constructor method is called.
4) None of the above

Asked In C++ MAN (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (34)   (17) Submit Your Solution Technical
Advertisements

(#M40153445) C++ QUESTION oswisio Keep an EYE Keep an eye puzzle Keep an eye puzzle

hydfudfhwhdfgswdy hswdvwuigtdwvbduiwdgw bvjd wudgw vdwudi

Asked In C++ pankaj makhija (7 years ago)
Unsolved
Is this Puzzle helpful?   (2)   (10) Submit Your Solution

(#M40155993) C++ QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Pankaj makes a program to print the product of cubes of the first 10 whole numbers.

She writes the following program:

integer x = 0 // statement 1

integer x = 0 // statement 1

integer sum = 0 // statement 2

while ( x < 10 ) // statement 3

{

sum = x*x*x // statement 4


x = x + 1 // statement 5

}

print sum // statement 6


Is her program correct? If not, which statement will you modify to correct it?

a. No error, the program is correct

b. Statement 1

c. Statement 4

d. statement 6

Asked In C++ abhinav (7 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (29)   (15) Submit Your Solution undefined

(#M40028217) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is a container class? What are the types of container classes?

Asked In C++ MAN (9 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Technical

(#M40028550) C++ QUESTION Technical Question on C++ and OOPS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Data members is also called?

Options
1) Attribute
2) Method
3) Class
4) Object

Asked In C++ MAN (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (18)   (8) Submit Your Solution Technical

(#M40152257) C++ QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Flag question
Question text
What will be the output of the following program?
#include
using namespace std;
int g = 100;
int main()
{
int a;
{
int b;
b = 20;
a = 35;
g = 65;
a = 50;
cout <

Asked In C++ priya (7 years ago)
Unsolved
Is this Puzzle helpful?   (10)   (4) Submit Your Solution

(#M40156048) C++ QUESTION Pointers Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which one of the following is the correct option showing the declaration(s) of a pointer to constant integer?

[1] const int* a;
[2] int* const a;
[3] int const* a;
[4] 1 and 3 both
[5] 1 and 2 both
[6] 2 and 3 both
[7] None of the above

Asked In C++ Rishikesh Agrawani (7 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (10)   (2) Submit Your Solution Technical

(#M40030274) C++ QUESTION C++ Keep an EYE Keep an eye puzzle Keep an eye puzzle

Suppose that the foo class does not have an
overloaded assignment operator. What happens
when an assignment a=b; is given for two foo
objects?
a) The automatic assignment operator is used
b) The copy constructor is used
c) Compiler error
d) Run-time error

Asked In C++ MAN (9 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (17)   (10) Submit Your Solution Technical

(#M40037429) C++ QUESTION any puzzle Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following statements is incorrect?
A. Friend keyword can be used in the class to allow access to another class.
B. Friend keyword can be used for a function in the public section of a class.
C. Friend keyword can be used for a function in the private section of a class.
D. Friend keyword can be used on main().

Asked In C++ Tharambigai ramesh (8 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (12)   (6) Submit Your Solution Technical
Keep an EYE (0)
Solved Question (1) UnSolved Question (447)
Pages: 45123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

"Full form of MATHS M-mind A-aim T-trick H-habits S-serious "

Ajay Singh

[G]eometry is not true, it is advantageous.

~Henri Poincaré

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2475K+Registerd user
  • 1733K+Engineers
  • 742K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com