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

QUESTION 5 A function is called by using its name. True False 4 points QUESTION

ID: 3555458 • Letter: Q

Question

QUESTION 5

A function is called by using its name.

True

False

4 points   

QUESTION 6

Comments cause the computer to print the text enclosed between /* */ on the screen when the program is executed.

True

False

4 points   

QUESTION 7

Evary C program begins execution at the function Main

True

False

4 points   

QUESTION 8

Which statement inputs an integer?

scanf("%d", &num1);

scanf("%f", &num1);

scanf("%i", &num1);

A and C

4 points   

QUESTION 9

How many times the loop below will run:


int count = 1;
while (count < 10){
printf(" %i", count);
count = count + 1;
}

9

11

10

none of the above

4 points   

QUESTION 10

Program comments are also known as external documentation

True

False

4 points   

QUESTION 11

What is the value of x[2] after execution of this code fragment?

int x[4] = {3, 6, 9, 5};

x[2] -= x[1] % x[3];

3

2

1

8

4 points   

QUESTION 12

#include<stdio.h>
This is a pre-processor directive that tells to include the standard input/output header file in the program.

True

False

4 points   

QUESTION 13

How will the loop below display:


int count = 9;
while (count > =0){
printf(" %i", count);
count -= 1;
}

numbers from 10 to 1

numbers from 9 to 1

numbers from 9 to 0

numbers from 10 to 0

4 points   

QUESTION 14

All variables must be declared before they are used.

True

False

4 points   

QUESTION 15

C will consider the variables number and NUmber identical.

True

False

scanf("%d", &num1);

scanf("%f", &num1);

scanf("%i", &num1);

A and C

Explanation / Answer

5.true
6.false
7.true
8.A and C
9.10
10.false
11 1
12.true
13.numbers from 9 to 0
14.true
15true

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