programming languages Online Quiz - 294
Description: programming languages Online Quiz - 294 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Given: 1. public class A { 2. public void doit() { 3. } 4. public String doit() { 5. return “a”; 6. } 7. public double doit(int x) { 8. return 1.0; 9. } 10.} What is the result?
Given: 10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?
Given: 10. class Line { 11. public class Point { public int x,y; } 12. public Point getPoint() { return new Point(); } 13. } 14. class Triangle { 15. public Triangle() { 16. // insert code here 17. } 18. } Which code, inserted at line 16, correctly retrieves a local instance of a Point object?
Given: 10. class One { 11. public One() { System.out.print(1); } 12. } 13. class Two extends One { 14. public Two() { System.out.print(2); } 15. } 16. class Three extends Two { 17. public Three() { System.out.print(3); } 18. } 19. public class Numbers{ 20. public static void main( String[] argv) { new Three(); } 21. } What is the result when this code is executed?
When comparing java.io.BufferedWriter to java.io.FileWriter, which capabilities exist as a method in only one of the two?
Output for the below code : int i = 10; while (++i <= 10) { i++; } System.out.print(i);
touch command can be used for ?
Command to list the hidden files inside a directory
Command to delete a directory which contains some files.
Command to change the permissions of a file
How to rename a file in unix?
touch command can be used for ?
Command to list the hidden files inside a directory
Command to delete a directory which contains some files.
Command to change the permissions of a file
How to rename a file in unix?
Which of the following is NOT a tool used to aid software design?
Pointers are a mainstay of C programming but faulty pointer arithmetic can often lead to serious bugs. Which of the following C-derived languages has opted to eliminate C-style pointers altogether?
You have a long night of coding ahead. Which of the following energy drinks offers the most caffeine and sugar per ounce?
Which of the following is a typical activity that takes place during the process of code refactoring?