Java Programming Fundamentals Quiz
Test your knowledge of Java programming concepts including OOP, data types, operators, and core language features. Also includes some general programming language questions.
Questions
x=InStrRev("abc","cba") x=???
- 0
- 1
- true
- false
x=space(2) y=Len(x) y=????
- 1
- 2
- 3
- 4
x=strcomp("abc","abc") x=????
- 0
- 1
- 2
- 3
Read this piece of code carefully if("String".toString() == "String") System.out.println("Equal"); else System.out.println("Not Equal");Answers
- 1. the code will compile an print “Equal”.
- 2. the code will compile an print “Not Equal”.
- 3. the code will cause a compiler error.
- None of Above
On Which Concept JAVA is Working?
- OOPS
- Structured
- Hiber
- None of Above
Java is used in Which Applications.
- Desktop & web Application
- Desktop
- Web Application
- Other
Java Is Robust Language?
- True
- False
Is Java Is Platform independent?
- True
- False
Can JAVA use the Polymorphism & Inheritance?
- True
- False
In JAVA, Delete Is Keyword?
- True
- False
What is Void In Public Static Void main()
- Access modifier
- Nothing
- Return Type
- None Of Above
can we use Hybrid Inheritance In Java.
- True
- False
What Is SuperClass In JAVA
- Parent Class
- Class
- Child Class
- None Of Above
What is Object??
- Instance of Class
- Static Variable
- Keyword
- None Of above
JAVA Runs on ........
- Windows
- MAC
- unix\Linux
- All of the Above
What's the difference between an Applet and an application ?
- An application is only available on Windows
- Applets can paint words, applications cannot.
- Applets are run over the web.
- None of the above.
The following statements make “length” be what number ? int length; length = 4; length ++;
- 4
- 5
- 6
- 7
Booleans are _______.
- True or False
- Single characters
- Text
- All numbers
What will be the value of “num” after the following statements? int num; num = (5+4); num = num / 9; num = 12;
- 0
- 1
- 12
- 9
If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two Boolean statements ?
- &
- &&
- |
- ||