Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. A user defined variable is implicitly initialized to zero null string either

ID: 3747331 • Letter: 1

Question

1. A user defined variable is implicitly initialized to

zero

null string

either a or b

none of the above

2. The print and printf statements can be told to send their output to other place except standard output. This is called

redirection

redistribution

reinsertion

d. none of the above

3. Which one of the following is not true?

In a typical awk program, all input is read either from standard input or specified files

awk language divides its input into records and fields

awk reads an input record and the record is automatically seperated by the interpreter into pieces called “fields

d. The number of fields needs to be a constant

4.

Which statement skips over the rest of the loop body, causing the next cycle around the loop to begin immediately?

next

break

continue

None of the above

a.

zero

b.

null string

c.

either a or b

d.

none of the above

Explanation / Answer

Answer 1: C depends on the type we are creating 0 is it is number, empty is is strng

Answer 2: A print and printf can send output to other places also

Answer 3:D  The number of fields does not need to be a constant.

Answer 4: C, continue is used to skip the steps in current iteration and moves to next iteration