Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Logical expressions produce bool type results - C++ basic concepts
Home
>>
Category
>>
C++ (MCQ) questions and answers
>>
C++ basic concepts
Q. Logical expressions produce ____________ type results.
- Published on 17 Jul 15
a.
explicit
b.
garbage
c.
bool
d.
static
ANSWER: bool
Related Content
Constructor and Destructor (
10
)
Operator Overloading (
11
)
Inheritance (
16
)
Polymorphism and Abstract Classes (
12
)
C++ basic concepts (
39
)
Exception Handling (
22
)
File Handling (
11
)
Functions (
20
)
Memory Management (
6
)
Pointers (
3
)
Discussion
Mohanapriya
-Posted on 04 Jan 21
percentage=45
you are pass
Nihal
-Posted on 08 Oct 15
. Logical expressions produce bool type results.
Logical operators are also called boolean operators. It evaluates expressions and provides boolean result.
Some of the logical operators are as follows:
int main()
{
int percentage;
cout << "Enter your percentage: ";
cin >> percentage;
if(percentage >= 40 && percentage <= 59)
{
cout << "You are pass" << endl;
}
else if(percentage >=60)
{
cout << "You are pass with first division" << endl;
}
return 0;
}
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲