Common errors in C programming

Quiz
•
Computers
•
University
•
Medium

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
Similar Resources on Wayground
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
10 questions
Basics of C

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
19 questions
DSA Quest 1.0

Quiz
•
University
11 questions
Revision C class

Quiz
•
University
20 questions
Quiz Pemrograman Lanjut 2022/2023

Quiz
•
University
16 questions
C-Extended

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University