Match the following commands to the corresponding outputs. Place the letter that indicates your answer on the line in front of each command.

- Your have the following two variables defined:
XYZ=HELLO EMPTY=

_____ 1. echo $XYZ
_____ 2. echo $EMPTY
_____ 3. echo ${XYZ: "BYE"}
_____ 4. echo ${EMPTY: "BYE"}
_____ 5. echo ${XYZ: + "BYE"}
_____ 6. echo ${EMPTY: + "BYE"}
_____ 7. echo ${XYZ: = "BYE"}
_____ 8. echo ${EMPTY: = "BYE"}
_____ 9. echo ${XYZ: ? "BYE"}
_____ 10. echo ${XYZ: ? "BYE"}

a: HELLO
b: BYE
c: Nothing is displayed


A 1. echo $XYZ
C 2. echo $EMPTY
A 3. echo ${XYZ: "BYE"}
B 4. echo ${EMPTY: "BYE"}
B 5. echo ${XYZ: + "BYE"}
C 6. echo ${EMPTY: + "BYE"}
A 7. echo ${XYZ: = "BYE"}
B 8. echo ${EMPTY: = "BYE"}
A 9. echo ${XYZ: ? "BYE"}
B 10. echo ${XYZ: ? "BYE"}

Computer Science & Information Technology

You might also like to view...

The legally built-in limitation or exception to copyright protection is known as ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

? ?Which item in Figure 3.1 represents the scroll overflow style? ?

A. ?1 B. ?2 C. ?3 D. ?4

Computer Science & Information Technology

Define the terms “design focus” and “granularity” in the context WebApp design patterns?

What will be an ideal response?

Computer Science & Information Technology

The ________ is the biggest power consumer on a mobile computing device.

A. display B. hard drive C. memory module D. CPU

Computer Science & Information Technology