9. What is the result of the following c++ program if user enter 45 in the running stage? #include void main() { int a; cin>>a; if(a>=50) cout<<"pass"; else cout<<"fail";} a) Pass b) Fail c) Compilation error d) 95 e) None of the mentioned 10. What is the number of operators that are used to build the condition of the number if it's even or odd? a) One operator b) Two operators c) Four operators d) No operator e) None of the mentioned

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 8E: (Numerical) a. Write a C++ program that accepts an integer argument and determines whether the...
icon
Related questions
Question
100%

choose the correct answers for all

C++

9. What is the result of the following c++ program if user enter 45 in the
running stage?
#include<iostream.h>
void main()
{
int a;
cin>>a;
if(a>=50)
cout<<"pass";
else
cout<<"fail";}
a) Pass
b) Fail
c) Compilation error
d) 95
e) None of the mentioned
10. What is the number of operators that are used to build the condition of
the number if it's even or odd?
a) One operator
b) Two operators
c) Four operators
d) No operator
e) None of the mentioned
Transcribed Image Text:9. What is the result of the following c++ program if user enter 45 in the running stage? #include<iostream.h> void main() { int a; cin>>a; if(a>=50) cout<<"pass"; else cout<<"fail";} a) Pass b) Fail c) Compilation error d) 95 e) None of the mentioned 10. What is the number of operators that are used to build the condition of the number if it's even or odd? a) One operator b) Two operators c) Four operators d) No operator e) None of the mentioned
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Harmonic number
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr