CuriousTab
Search
CuriousTab
Home
Aptitude
Computer
C Programming
C# Programming
C++ Programming
Database
Java Programming
Networking
Engineering
Biochemical Engineering
Biochemistry
Biotechnology
Chemical Engineering
Civil Engineering
Computer Science
Digital Electronics
Electrical Engineering
Electronics
Electronics and Communication Engineering
Mechanical Engineering
Microbiology
Technical Drawing
GK
Current Affairs
General Knowledge
Reasoning
Data Interpretation
Logical Reasoning
Non Verbal Reasoning
Verbal Ability
Verbal Reasoning
Exams
AIEEE
Bank Exams
CAT
GATE
IIT JEE
TOEFL
Jobs
Analyst
Bank PO
Database Administrator
IT Trainer
Network Engineer
Project Manager
Software Architect
Discussion
Home
‣
C Programming
‣
Bitwise Operators
Comments
Question
Bitwise | can be used to set multiple bits in number.
Options
A. Yes
B. No
Correct Answer
Yes
Bitwise Operators problems
Search Results
1. Bitwise can be used to perform addition and subtraction.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: No
2. On left shifting, the bits from the left are rotated and brought to the right and accommodated where there is empty space on the right?
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: False
3. Left shifting an
unsigned int
or
char
by 1 is always equivalent to multiplying it by 2.
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
4. Bitwise & can be used to check if a bit in number is set or not.
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
5. In the statement
expression1 >> expression2
. if
expression1
is a signed integer with its leftmost bit set to 1 then on right shifting it the result of the statement will vary from computer to computer
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
6. Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: Yes
7. Bitwise | can be used to multiply a number by powers of 2.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: No
8. Bitwise can be used to reverse a sign of a number.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: No
9. Bitwise can be used to generate a random number.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: No
10. Bitwise | can be used to set a bit in number.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: Yes
Comments
There are no comments.
Enter a new Comment
Save
More in C Programming:
Complicated Declarations
Constants
Declarations and Initializations
Expressions
Floating Point Issues
Input / Output
Library Functions
Pointers
Strings
Arrays
Bitwise Operators
C Preprocessor
Command Line Arguments
Control Instructions
Functions
Memory Allocation
Structures, Unions, Enums
Variable Number of Arguments