Question: Q1- A program that produces an incorrect result has: Syntax error Non-fatal run-time error Fatal run-time error Compile error Q2- If a C program has

Q1- A program that produces an incorrect result has:

Syntax error

Non-fatal run-time error

Fatal run-time error

Compile error

Q2- If a C program has run-time error, it can't be compiled

True

false

Q3- What file will be created after compiling a C program after executing the following command? gcc test.c -o test.out

test

test.out

a.out

We can't compile a c program with this command

Q4- How do we execute a compiled C program in a Linux/Unix system after the following successful compilation? gcc myProgram.c

myProgram.exe

./myProgram

./myProgram.out

./a.out

Q5- Division by zero is a:

Compile error

Non-fatal run-time error

Fatal run-time error

Syntax error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!