aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • What is the value of a/b if both are floats; a=22.0 and b...
Multiple choice

What is the value of a/b if both are floats; a=22.0 and b=3.0?

  1. 7

  2. 22/3

  3. 7.33

  4. 6

  5. 8

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

If you solve and both are floats, then the result is 7.33.

Keep practicing — related questions

  • Which of the folowing are valid float values?
  • Which of these variables is a float?
  • Arrange the following characters in ascending order according to their ASCII value. b, A, (z-A), 0, Z
  • A, B and C were partners sharing profits in the ratio 5 : 4 : 1. 'A' retired and new ratio was decided as 3...
  • Which two cause a compiler error? float[ ] f = new float(3); float f2[ ] = new float[ ]; float[ ]f1 = new f...
  • What will be the output of the program? class A { final public int GetResult(int a, int b) { return 0; } } ...
  • What will be the output of the program? try { Float f1 = new Float("3.0"); int x = f1.intValue(); byte b = ...
  • What will be the output of the program? public class Test { private static float[] f = new float[2]; public...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy