Game Preview

Revision -

  •  English    13     Public
    Grade 9 - Whole Syllabus
  •   Study   Slideshow
  • Grade 9 - Whole Syllabus
    5
  •  10
  • int x = -10; System.out.println(Math.abs(x) + Math.ceil(2.3));
    13
  •  10
  • what will be the output - System.out.println(Math.floor(Math.random() * 10));
    Any number between 0 and 9
  •  10
  • int a = 7; int b = 4; System.out.println(Math.max(a, b) - Math.min(a, b));
    3
  •  10
  • What will be the output - System.out.println(Math.pow(2, Math.round(2.6)));
    8
  •  10
  • What will be the output - System.out.println(Math.floor(Math.abs(-5.9)));
    6
  •  10
  • Which Mathematical Library function return data type is int.
    Math.rounnd()
  •  10
  • Execution Count - int count = 0; for(int i = 1; i <= 3; i++) { for(int j = 1; j <= 2; j++) { count++; } } System.out.println(count);
    6
  •  10
  • Predict output - char ch = 'A'; System.out.println(ch + 1);
    66
  •  10
  • An error that occurs due to violation of Java grammar rules is called a ________ error.
    syntax error
  •  10
  • Errors that occur while the program is running are known as ________ errors.
    runtime
  •  10
  • missing semicolon is a ___________ error
    Syntax error
  •  10
  • Inheritance supports ________ of code.
    reusability
  •  10