Search Header Logo

DEBUGGING

Authored by VéLmUruKàN MàThí

Computers, Other, Education

University

Used 7+ times

DEBUGGING
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What is the output of the following program?

#include<stdio.h>


main()

{

fprintf(stdout,"Hello, World!");

}

A . Hello, World!

B. No output

C . Compile error

D . Runtime error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.What is the output of the following program?

#include<stdio.h>


int main();

void main()

{

printf("Okay");

}

A . Okay

B. No output

C . Compile error. We can not declare main() function.

D. Compile error. Mismatch in declaration & definition.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3- Which scanf() statement will you use to scan a float value (a) and double value (b)?


Float a;

Double b;

A. scanf("%f %f", &a, &b);

B. scanf("%lf % lf ", &a, &b);

C. scanf("%Lf %Lf", &a, &b);

D. scanf("%f %lf", &a, &b);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4 - An operation with only one operand is called unary operation.

A . Yes

B . An operation with two operand is called unary operation

C . An operation with unlimited operand is called unary operation

D. None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5 - Choose the function that is most appropriate for reading in a multi-word string?

A. strnset()

B. scanf()

C. strchr()

D. gets()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is the correct value to return to the operating system upon the successful completion of a program?

A. -1

B. 1

C.0

D. Programs do not return a value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following is a correct comment?

A. */ Comments */

B. ** Comment **

C. /* Comment */

D. { Comment }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?