programming languages Online Quiz - 16
Description: programming languages Online Quiz - 16 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What is the result of the following code? 1. public class Drink { 2. private int millis = 200; 3. boolean carbonated = false; 4. 5. public static void main(String [] args) { 6. System.out.println(new AppyFizz()); 7. } 8. } 9. class AppyFizz extends Drink { 10. public String toString() { 11. return millis + " " + carbonated; 12. } 13. }
What is the result of the following code? 1. public abstract class A { 2. private void doStuff() { 3. System.out.println("A"); 4. } 5. 6. public static void main(String [] args) { 7. A a = new B(); 8. a.doStuff(); 9. } 10. } 11. 12. class B extends A { 13. protected void doStuff() { 14. System.out.println("B"); 15. } 16. }
What is the result of the following code? 1. public abstract class Catchable { 2. protected abstract void catchAnObject(Object x); 3. 4. public static void main(String [] args) { 5. java.util.Date now = new java.util.Date(); 6. Catchable target = new MyStringCatcher(); 7. target.catchAnObject(now); 8. } 9. } 10. 11. class MyStringCatcher extends Catchable { 12. public void catchAnObject(Object x) { 13. System.out.println("Caught object"); 14. } 15. 16. public void catchAnObject(String s) { 17. System.out.println("Caught string"); 18. } 19. }
At Dartmouth College in 1964 John Kemeny and Thomas Kurtz invented .... ?
You could use XSLT to ...
Who invented C++ ?
Which of these is not a functional programming language
Dylan, Erlang, Haskell and ML are examples of ... ?
A true or false statement put into code that the programmer expects to always be true is an ...
EBNF is ...
A section of code that responds to a particular interaction of the user with a gui control is called a ... ?
RISC is ...
I define 8 different methods, including CONNECT, PATCH, PUT and POST. I am stateless. I have a four letter name. What am I ?
Dim strQuestion,strCount
strQuestion=" abc "
strQuestion=Trim(strQuestion)
strCount=Len(strQuestion)
Dim strOne strOne=String(3,"A") Msgbox strOne
Dim strOne strOne=InStrRev("abc","ABC") Msgbox strOne
Dim x x=InStrRev("abc abc","abc") x=????
Dim x x=InStr("abc abc","abc") Msgbox x
x="TIB Ltd"
y=Len(x)
y=???
x=Right("abcd.xls",4) x=????