DEBUGGING

DEBUGGING

University

26 Qs

quiz-placeholder

Similar activities

C Programing

C Programing

University

25 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

c++

c++

University

22 Qs

C Coding Contest Round 1

C Coding Contest Round 1

University

25 Qs

C Programming test

C Programming test

University

23 Qs

C Loops

C Loops

University

25 Qs

Pointers in C

Pointers in C

University

24 Qs

IEEE Coding Cybersecurity

IEEE Coding Cybersecurity

University

27 Qs

DEBUGGING

DEBUGGING

Assessment

Quiz

Computers, Other, Education

University

Hard

Created by

VéLmUruKàN MàThí

Used 6+ times

FREE Resource

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 }

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?