Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

mcqoptions.com

mcqoptions.com Logo mcqoptions.com Logo

mcqoptions.com Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/Programming
  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random
Manjari Saurabh Natarajan
Manjari Saurabh Natarajan
Asked: 3 years agoIn: Programming

What main integer types are offered by C++?

  • 0
  • 1
  • 5
  • 0
Farah Parveen Konda
Farah Parveen Konda
Asked: 3 years agoIn: Programming

What values will be assigned to the variables ua, ub, uc and fail after the execution of the following program segment:

void main() {

int i = 0,ua = 0,ub = 0,uc = 0,fai l= 0;

while(i<=5)

{

switch(i++)

{ case 1:

case 2: ++ua;

case 3:

case 4: ++ub;

case 5: ++uc;

default: ++fai;

} //switch

} //while

cout<<ua<<end1;

cout<<ub<<end1;

cout<<uc<<end1;

cout<<fail<<end1;

}

  • 0
  • 1
  • 4
  • 0
Satish Mangal
Satish Mangal
Asked: 3 years agoIn: Programming

Find out the errors, if any, in the following C++ statement:

(i)  cout<<” = “a;

(ii)  m = 5, n = 12; o = 15

(iii)  cout<<“x”;<>y;>>j;

(v)  cin>>”\n”>>y; 

(vi)  cout>>”\n “abc”;

(vii)  a = b + c

(viii)  break = x*y;

  • 0
  • 1
  • 3
  • 0
Alka Gour
Alka Gour
Asked: 3 years agoIn: Programming

How do the following two statements differ in operation?

cin>>ch;

cin.get(ch);

  • 0
  • 1
  • 7
  • 0
Mridula Date
Mridula Date
Asked: 3 years agoIn: Programming

Identify the possible error(s) in the following code fragment. Discuss the reason(s) of error(s) and correct the code:

cin>>i>>j;

while(i<j)

 cout<,i*j;

i++;

  • 0
  • 1
  • 2
  • 0
Abbas Raj Srinivasan
Abbas Raj Srinivasan
Asked: 3 years agoIn: Programming

Briefly describe the importance of iostream.h file. 

  • 0
  • 1
  • 5
  • 0
Uma Daanish Zacharia
Uma Daanish Zacharia
Asked: 3 years agoIn: Programming

Rewrite the following program after removing all the syntactical error(s), if any. Underline each correction.

#include <iostream.h>

void main() {

One=10,Two=20;

Callme(One;Two);

Callme(Two);

}

void Callme(int Arg1,int Arg2=20)

{ 

Arg1=Arg1+Arg2

cout<<Arg1<<Arg2;

}

  • 0
  • 1
  • 0
  • 0
Indrani Pal
Indrani Pal
Asked: 3 years agoIn: Programming

Rewrite the following program after removing all the syntactical error(s), if any. Underline each correction.

#include <iostream.h>

void main() {

Present=25,Past=35;

Assign(Present;Past);

Assign(Past);

}

 void Assign(int Default1,Default2=30)

{

Default1=Default1+Default2;

cout<<Default1>>Default2;

}

  • 0
  • 1
  • 0
  • 0
Lalit Rashid Chanda
Lalit Rashid Chanda
Asked: 3 years agoIn: Programming

Explain the impact of access modifier const over variables. Support your answer with examples. 

  • 0
  • 1
  • 21
  • 0
Laveena Grewal
Laveena Grewal
Asked: 3 years agoIn: Programming

What do you understand by default arguments and constant argument? Write a short note on their usefulness. 

  • 0
  • 1
  • 0
  • 0
Load More Questions

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Aditi Dugal

    How to approach applying for a job at a company ...

    • 7 Answers
  • Raghavan Prasad Hayer

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Ankita Dinesh Biswas

    What is a programmer’s life like?

    • 5 Answers
  • 47e0c
    47e0c added an answer Correct Answer - Increasing the yield of animals and improving… November 12, 2022 at 9:56 am
  • b6699
    b6699 added an answer Sender\'s addressDateReceivers name and addressSubjectContentYours faithfullyName November 12, 2022 at 9:56 am
  • 10eb8
    10eb8 added an answer Any uncertinity in measurment is known as errorDifference in true… November 12, 2022 at 9:56 am

Top Members

Trending Tags

Class 11 Parabola Polity Polynomials Probability Projectile Protists Quadrilaterals Rario Reasoning Sampling Social Solutions Spectroscopy Switchgear Thermodynamic Tourism Transients Upsc Wbjee

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Users

Footer

mcqoptions.com

About

MCQOptions.com

Here are the top interview questions, example answers, tips for giving the best response.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Follow

© 2022 MCQOptions. All Rights Reserved