What is the output from this code?

``` int x = 0;
if(x == 2 || 1)
{
cout<<”Number is 1 or 2”;
}
else
{
cout << “Number is not 1 or 2”;
}```
A. Number is not 1 or 2
B. Number is 1 or 2
C. Number is 1 or 2Number is not 1 or 2
D. Nothing. The statement is written incorrectly.


B

Computer Science & Information Technology

You might also like to view...

You can use the Relationships group on the ____ tab to create, view, and modify relationships between the tables in a database.

A. HOME B. FILE C. DATABASE TOOLS D. DESIGN

Computer Science & Information Technology

A ________ is a special DNS server that accepts requests for name resolution from another DNS server

a. Resolver b. Query server c. Directory server d. Forwarder

Computer Science & Information Technology

Which of the following is not part of a wall outlet?

A. a mounting plate B. a female jack C. a male jack D. a faceplate

Computer Science & Information Technology

Real-Time Streaming Protocol (RTSP) is a(n) ____ layer protocol.

A. ?physical B. ?network C. ?transport D. ?application

Computer Science & Information Technology