Software Programming : Java Programming QUESTIONS AND ANSWERS :: part14 : 6 to 10
Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :
6.Select the invalid assignment statement(s) from the following: I. Float x = 238.88; II. Double y = 0x443; III. int n = (int) true; IV. long m =778645; |
Both (I) and (III) above |
Only (II) above |
Both (II) and (IV) above |
Both (I) and (II) above |
All (I), (II), (III) and (IV) above. |
7.Which access specifiers should be implemented in a class for all interface methods? I. Private. II. Public. III. Protected. |
Only (I) above |
Only (II) above |
Only (III) above |
Both (I) and (III) above |
All (I), (II) and (III) above. |
8.The type long can be used to store values in the following range: |
-263 to 263-1 |
-231 to 231-1 |
-264 to 264 |
-232 to 232-1 |
232 to 264-1. |
9.Which of the following is legal valid variable name? |
1num |
#twenty |
@one |
timeOfDay |
temp val. |
10.What will be the content of array variable table after executing the following code? for(int i=0; i<3; i++) for(int j=0; j<3; j++) if(j == i) table[i][j] = 1; else table[i][j] = 0; |
1 0 00 1 00 0 1 |
0 0 00 0 00 0 0 |
1 0 01 1 01 1 1 |
0 0 10 1 01 0 0 |
0 0 0 |
More Java Programming QUESTIONS AND ANSWERS available in next pages
-
Health is the greatest gift, contentment is the greatest wealth -Buddha
- TNTET 2021 - Practice
- SSC CGL 2021 - Practice
- TNPSC Group 2A 2021 - Practice
- IIT JEE
- IIT JEE Q&A
- TNPSC Answer Keys
- TNPSC Group 2 Syllabus
- TNPSC Q&A
- Online Tests - TNPSC
- Online Tests - GK
- IBPS 2020-2021
- Online Tests - Bank
- Online Tests - RRB NTPC
- Online Tests - UGC NET
- Online Tests - TANCET
- Online Aptitude Test
- Engineering
- Programming
- Basic Science
- Quiz
- Plus Two Question Papers
- SSLC Question Bank
- Aptitude Tests
- Logical Reasoning
- General Knowledge-Hindi
- Indian History MCQ
- Indian Geography MCQ
- Indian Civics MCQ
- Indian Economics MCQ
- CTET Biology MCQ
- CTET Chemistry MCQ
- CTET Physics Solved MCQ
- Arithmetic Tests
- Press Release
- FAQ
- Coaching Centres
- TNPSC Group 1 Syllabus
- TNPSC Group IV Syllabus
- TRB 2017 in English PDF
- TRB 2017 in Tamil PDF
- TET
- TNTET