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

Please help I have already solved most of these I am trying to validate my answe

ID: 3809599 • Letter: P

Question

Please help I have already solved most of these I am trying to validate my answers.

ALL OF THESE MULTIPLE CHOICES MAY CONTAIN ONE OR MORE CORRECT ANSWERS! Thank you so much.

TEST2.pdf Adobe Acrobat Reader DC 2 File Edit View Window Help Home Tools TEST2.pdf Part 1 Multiple choice (22 points in total, 2 points for each): Note: each question may contain one or more correct answers Which of the following command(s can be used to check if the ring "aabbcc matche a pattern or not? (a) expr aabbcc 'aa.** (b) echo "aabbcc" grep aa. (c) expr match "aabbcc" "aa." (d) egrep 'aa. END aabbcc END Which of the following is legal direc C? (a) include stdio.h (b) #include

Explanation / Answer

1.Sorry I don't know

2.(b) only true.others are illegal

3.(d) only true. Others are legal in C language.

4. both (a) & (b) are answers. for 'A', we are adding 3. So it can be 'D' as in char type and 68 as in int type.

5.(C) is correct.

6.All are true. All commands can be used to compile a C program. Except the first command, all are used to produce executable file with a specific name.

7.(b) and (d) also possible. These are platform dependent. In linux, only (b) will work. In windows only (d) will work. In some online compilers both will work.

8.(b) only. Because right shift operator divides the number by 2. So 8 will be divided by 2 in 3 times.That is 8/2=4;4/2=2;2/2=1-->Our Result.

9.(d) is correct. Actually the function is doing (n>>m), m times, the n value will be decremented by 1 bit position from least significant bit.

10. Here None is correct answer. Because (a) & (b) are same and (c) & (d) are same for the loop body which includes iterator variable(i). But they are all same if the loop body does not using iterator variable(i).

11.Sorry, I don't know.

Thankyou...!