Moderate

The smallest integer type is _____________ and its size is____________ bits?

Correct answer: B. byte, 8

  • A. short, 8
  • B. byte, 8
  • C. short, 16
  • D. short, 16

Explanation

In Java, `byte` is the smallest signed integer primitive type and occupies 8 bits. `short` is larger, occupying 16 bits.

Last updated

Practise Software Design and Architecture

493 free Software Design and Architecture MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions