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

Computer Science Complete the following question by matching the line number to

ID: 3698088 • Letter: C

Question

Computer Science
Complete the following question by matching the line number to the snippet of code. When completed the code should print out only numbers evenly divisible by two between 1 and 100. for(int-0:1 100; i+10) printf("%d n", int i=1; define STEP2 #define STEP 3 2 Line 2 Lite $ s. Line 6 .STEP + STEP , i) while( 100) -NULL . s Line * Line 10 , IF A LINE OF CODE NULL DOES NOT BELONG MATCH IT T WITH THIs printf("%sin'. STEP"); int io Question 20 (Manetery) (6 ) Assume that the following function appears in a working program Somewhere in the main function a pointer to this function is defined. int ("addInkPTR)(int,int); addintPTR BaddIntegers; This pointer is then used later in the program intx-5, --2; What is VAR equal to? VAR-110 OVAR-8 VAR 108 OVAR 10 VAR 100

Explanation / Answer

1)

line 2 --> #define STEP 2

line 5 --> int i=1

line 6 --> while(i<100)

line 8 --> if(i%STEP==0)

line 9 --> printf("%d ",i)

line 10 --> i+=1

2)

VAR=110

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote