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
Left shifting an
unsigned int
or
char
by 1 is always equivalent to multiplying it by 2.
Options
A. True
B. False
Correct Answer
True
Bitwise Operators problems
Search Results
1. 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
2. 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
3. Bitwise & can be used to check if more than one bit in a number is on.
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
4. Bitwise & can be used to divide a number by powers of 2
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: False
5. Left shifting a number by 1 is always equivalent to multiplying it by 2.
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
Explanation:
0001 => 1
0010 => 2
0100 => 4
1000 => 8
6. 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
7. Bitwise can be used to perform addition and subtraction.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: No
8. Bitwise | can be used to set multiple bits in number.
Options
A. Yes
B. No
Show Answer
Scratch Pad
Discuss
Correct Answer: Yes
9. 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
10. 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
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