0

programming languages Online Quiz - 64

Description: programming languages Online Quiz - 64
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

What do you use to forward errors to a file?

  1. 1> filename

  2. 2> /dev/null

  3. &> filename

  4. 2> filename


Correct Option: B

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

  1. find all

  2. find -a

  3. all

  4. ls -a


Correct Option: D

How do you delete a file?

  1. less filename

  2. rm filename

  3. dl filename

  4. touch filename


Correct Option: B

With what can you stop a process?

  1. Stop

  2. Shutdown

  3. Kill

  4. Delete


Correct Option: C

How to create a new file without opening it?

  1. touch filename

  2. pico filename

  3. less filename

  4. more filename


Correct Option: A

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

  1. command >> file

  2. command << file

  3. command <> file

  4. command < file


Correct Option: A

With what command you can see your user name?

  1. pwd

  2. I

  3. whoami

  4. me


Correct Option: C

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


Correct Option: D
  1. Class

  2. Constructor

  3. Interface

  4. Method


Correct Option: C

Exception can be Rethrown?

  1. True

  2. False


Correct Option: A

What is a JVM?

  1. Interpreter

  2. Compiler

  3. Byte code file

  4. Class file


Correct Option: A

Can a double value be cast to a byte?

  1. True

  2. False


Correct Option: A

Is “abc” a primitive value?

  1. True

  2. False


Correct Option: B

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

  1. double

  2. string

  3. int

  4. float


Correct Option: B
- Hide questions