0
Alien head

programming languages Online Quiz - 64

Description: programming languages Online Quiz - 64
Number of Questions: 20
Created by:
Tags: programming languages

An object can be reachable again when it is garbage collected.

  1. True

  2. False

Answer: 2

Are true and false keywords in java?

  1. Yes

  2. No

  3. Cant say

  4. Not Aplicable

Answer: 2

What ia the result when you add a double value to a String?

  1. double

  2. string

  3. int

  4. float

Answer: 2

Is “abc” a primitive value?

  1. True

  2. False

Answer: 2

Can a double value be cast to a byte?

  1. True

  2. False

Answer: 1

What is a JVM?

  1. Interpreter

  2. Compiler

  3. Byte code file

  4. Class file

Answer: 1

The base class for Error and Exception is throwable

  1. True

  2. False

Answer: 1

Exception can be Rethrown?

  1. True

  2. False

Answer: 1

What is the Immediate superclass of the Applet Class in AWT?

  1. Panel

  2. Frame

  3. Window

  4. AWT

Answer: 1

What is Externalizable?

  1. Class

  2. Constructor

  3. Interface

  4. Method

Answer: 3

What does the command ls do?

  1. Opening a file

  2. Shows a calendar

  3. Display of the contents of a file

  4. Display of files and folders, present in the folder where you are

Answer: 4

With what command you can see what folder you are in?

  1. place

  2. whereami

  3. pwd

  4. map

Answer: 3

With what command you can see your user name?

  1. pwd

  2. I

  3. whoami

  4. me

Answer: 3

How can you append the output of a command to a file?

  1. command >> file

  2. command << file

  3. command <> file

  4. command < file

Answer: 1

How to create a new file without opening it?

  1. touch filename

  2. pico filename

  3. less filename

  4. more filename

Answer: 1

With what can you stop a process?

  1. Stop

  2. Shutdown

  3. Kill

  4. Delete

Answer: 3

How do you delete a file?

  1. less filename

  2. rm filename

  3. dl filename

  4. touch filename

Answer: 2

What command do you have to use to go to the parent directory?

  1. cd ..

  2. cd ~

  3. cd -

  4. cd /up

Answer: 1

How can you display a list of all files, including the hidden files?

  1. find all

  2. find -a

  3. all

  4. ls -a

Answer: 4

What do you use to forward errors to a file?

  1. 1> filename

  2. 2> /dev/null

  3. &> filename

  4. 2> filename

Answer: 2
+ View questions