Which of these statements are incorrect?
The left shift operator, <<, shifts all of the bits in a value to the left specified number of times
The right shift operator, >>, shifts all of the bits in a value to the right specified number of time
The left shift operator can be used as an alternative to multiplying by 2
The right shift operator automatically fills the higher order bits with 0
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
| # | Quiz |
|---|---|
|
1
Discuss
|
Decrement operator, −−, decreases the value of variable by what number?
Solution |
|
2
Discuss
|
What is the order of precedence (highest to lowest) of following operators?
1. &
2. ^
3. ?:
Solution |
|
3
Discuss
|
On applying Left shift operator, <<, on integer bits are lost one they are shifted past which position bit?
Solution |
|
4
Discuss
|
What will be the output of the following Java program?
Solution |
|
5
Discuss
|
What will be the output of the following Java code?
Solution |
|
6
Discuss
|
Which operator is used to invert all the digits in a binary representation of a number?
Solution |
|
7
Discuss
|
Which of these statements is correct?
Solution |
|
8
Discuss
|
Which of these statements are incorrect?
Solution |
|
9
Discuss
|
Which of these have highest precedence?
Solution |
|
10
Discuss
|
What will be the output of the following Java code?
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved