programming languages Online Quiz - 55
Description: programming languages Online Quiz - 55 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the Statements is true
First fully Object oriented language is:
The member functions of a class can be defined outside the class using:
Which of the following exists in C++ ?
Reference to its own class can be accepted by:
Using pointers to call a function is called as:
What will be the value of variable 'z' after execution of following code? int z; for(z=0;z<50;z++) {}
class PingPong2 { synchronized void hit(long n) { for(int i = 1; i < 3; i++) System.out.print(n + "-" + i + " "); } } public class Tester implements Runnable { static PingPong2 pp2 = new PingPong2(); public static void main(String[] args) { new Thread(new Tester()).start(); new Thread(new Tester()).start(); } public void run() { pp2.hit(Thread.currentThread().getId()); } } Which statement is true?
class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile?
Given: 11. class Mud { 12. // insert code here 13. System.out.println("hi"); 14. } 15. } And the following five fragments: public static void main(String...a) { public static void main(String.* a) { public static void main(String... a) { public static void main(String[]... a) { public static void main(String...[] a) { How many of the code fragments, inserted independently at line 12, compile?
Which Man class properly represents the relationship "Man has a best friend who is a Dog"?
Which two statements are true? (Choose two.)
The notation for preprocessor directive is :
Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 310-065 10 5. // insert code here 6. } Which five methods, inserted independently at line 5, will compile? (Choose five.)
Which of the following is used to receive a single string?