Common errors in C programming

Common errors in C programming

University

15 Qs

quiz-placeholder

Similar activities

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

C programming-1

C programming-1

University

13 Qs

C++ programing Quiz

C++ programing Quiz

12th Grade - University

10 Qs

CCE-III Programming in C Language

CCE-III Programming in C Language

University

20 Qs

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Array in C

Array in C

University

10 Qs

Common errors in C programming

Common errors in C programming

Assessment

Quiz

Computers

University

Medium

Created by

J GCET

Used 53+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

1. Syntax errors are always spotted when the program is compiled or interpreted.

True

False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

2. Which statement best describes logic errors?

An error in a program that causes it to produce incorrect ouputs but not a crash.

An error in a program that causes it to crash.

An error in the program caused by mis-spelt instructions.

An error in a program caused by hardware failure.

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

3.Logic errors are detected by the programming IDE being used.

True

False

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

4.Syntax errors are caused by incorrectly typed source code

False

True

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

5.A program won't run if there is a logic error.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.Find error/ output in following code

How many times " placement Questions" will print.

int main

{

int x;

for ( x=1;x <=10; x++)

{

if ( x < 5)

Continue;

else

break;

Printf (" placement Question ");

{

return 0;

}

Infinite time

11 times

0 time

10 times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7.Find error/output in following code

int main ()

{

int m = -10,n =20;

n = ( m < 0) ? 0 : 1;

printf ( " %d %d ", m,n ) ;

}

-10 0

10 20

20 -10

0 1

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?