1 / 14

Mastering Java Methods & Syntax Rules | Tech Challenge

Test your Java skills with these method and syntax challenges. From String methods to Math functions and naming conventions, showcase your expertise and improve your coding fluency in this interactive quiz. Are you ready to ace the final round?

eddy
Download Presentation

Mastering Java Methods & Syntax Rules | Tech Challenge

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. IT'S TIME TO PLAY

  2. ROUND 1

  3. Name a method associated with class String length() 1.) 34 indexOf() 2.) 26 compareTo() 15 3.) charAt() 4.) 11 substring() 5.) 7 toUpper() 3 6.)

  4. ROUND 1

  5. Name a method associated with class Math max() 1.) 25 min() 2.) 23 random() 18 3.) sqrt() 4.) 12 pow() 5.) 4 round() 3 6.)

  6. ROUND 2DOUBLE

  7. Name a punctuation (syntax) symbol used in Java parenthesis (for methods) 1.) 74 braces (for structures) 2.) 52 semicolon (end lines) 30 3.) quotation marks (strings) 4.) 18 dot/period (objects) 5.) 14 comma (separate parameters) 8 6.)

  8. ROUND 2DOUBLE

  9. Name a rule for naming variables No spaces 1.) 86 Case sensitive 2.) 62 Can’t begin with a number 36 3.) No special characters 4.) 10

  10. ROUND 3TRIPLE

  11. Method divides a number by 2 until the answer is less than 1, then returns the number of divisions int count2Div(int num) { 1.) 93 int count = 0; 2.) 9 while (num >= 1) { 75 3.) num = num/2; 4.) 78 count++; } 5.) 21 return count; } 24 6.)

  12. FINAL ROUND

  13. Final Round

  14. Final Round

More Related