0

programming languages Online Quiz - 294

Description: programming languages Online Quiz - 294
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. An exception is thrown at runtime

  2. Compilation fails because of an error in line 7

  3. Compilation fails because of an error in line 4.

  4. Compilation succeeds and no runtime errors with class A occur


Correct Option: C
  1. Point p = new Point();

  2. Line.Point p = new Line.Point();

  3. The Point class cannot be instatiated at line 15

  4. Line 1 = new Line() ; 1.Point p = new 1.Point();


Correct Option: B

When comparing java.io.BufferedWriter to java.io.FileWriter, which capabilities exist as a method in only one of the two?

  1. Closing the stream

  2. flushing the stream

  3. writing to the stream

  4. writing a line separator to the stream


Correct Option: D

touch command can be used for ?

  1. To create a directory

  2. To change timestamp of a file

  3. To edit a file

  4. To create a empty file


Correct Option: A,B,C,D

Command to list the hidden files inside a directory

  1. ls -R

  2. ls -l

  3. ls -a

  4. None of the above


Correct Option: A,B,C,D

Command to delete a directory which contains some files.

  1. rm

  2. rmdir

  3. rmdir -r

  4. rm -r


Correct Option: A,B,C,D

Command to change the permissions of a file

  1. chown

  2. cp

  3. chmod

  4. cd


Correct Option: A,B,C,D

How to rename a file in unix?

  1. rename

  2. cp

  3. mv

  4. cat


Correct Option: A,B,C,D

touch command can be used for ?

  1. To create a directory

  2. To change timestamp of a file

  3. To edit a file

  4. To create a empty file


Correct Option: A,B,C,D

Command to list the hidden files inside a directory

  1. ls -R

  2. ls -l

  3. ls -a

  4. None of the above


Correct Option: A,B,C,D

Command to delete a directory which contains some files.

  1. rm

  2. rmdir

  3. rmdir -r

  4. rm -r


Correct Option: A,B,C,D

Command to change the permissions of a file

  1. chown

  2. cp

  3. chmod

  4. cd


Correct Option: A,B,C,D

How to rename a file in unix?

  1. rename

  2. cp

  3. mv

  4. cat


Correct Option: A,B,C,D

Which of the following is NOT a tool used to aid software design?

  1. Flow charts

  2. Pseudocode

  3. Bytecode

  4. UML


Correct Option: C

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?

  1. C#

  2. Java

  3. Objective-C

  4. C++


Correct Option: B

You have a long night of coding ahead. Which of the following energy drinks offers the most caffeine and sugar per ounce?

  1. Red Bull

  2. Monster

  3. Rockstar

  4. Full Throttle


Correct Option: C
  1. Buffer overflows are eliminated

  2. Variables are renamed to provide more meaningful context

  3. Exception handlers are added to catch runtime errors

  4. New features are added based on the latest iterative design changes


Correct Option: B
- Hide questions