c-debugging

c-debugging

University

40 Qs

quiz-placeholder

Similar activities

แบบทดสอบวิชาไมโครคอนโทรลเลอร์

แบบทดสอบวิชาไมโครคอนโทรลเลอร์

KG - Professional Development

45 Qs

Adults Exam 2 Review

Adults Exam 2 Review

University

45 Qs

Focused Note-Taking Exam

Focused Note-Taking Exam

4th Grade - Professional Development

45 Qs

SEMANA 02_Propiedades del texto

SEMANA 02_Propiedades del texto

University

40 Qs

TEKNOLOGI WAN 2019 XI _ SATRIYO

TEKNOLOGI WAN 2019 XI _ SATRIYO

University

40 Qs

Identificar Cuentas Situación Financiera

Identificar Cuentas Situación Financiera

University

45 Qs

CATECHIZE-Technical Quiz

CATECHIZE-Technical Quiz

University

40 Qs

MS Endocrine

MS Endocrine

University

44 Qs

c-debugging

c-debugging

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

c debugging 2k25

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main()

{

int a = 5;

printf("%d"+1,a);

return 0;

}

Compilation error

Runtime error

6

d

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

#define FALSE -1

#define NULL 0

#define TRUE 1

int main(){

if(NULL)

printf("NULL");

else if(FALSE)

printf("TRUE");

else

printf("FALSE");

return 0;

}

FALSE

NULL

TRUE

COMPILATION ERROR

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main(){

int i = 0, j = 1, k = 0;

if(++k, j, i++)

printf("%d %d %d", i, j, k);

return 0;

}

prints nothing

1 1 0

0 1 0

COMPILATION ERROR

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main(){

int i;

if(true)

printf("This will work");

else

printf("This will not work");

return 0;

}

This will work

This will not work

Compilation Error

Runtime error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int x = -1;

int main(){

while(x++ == 1)

printf("loop");

return 0;

}

Prints nothing

LOOP

LOOP LOOP

LOOP LOOP LOOP

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main(){

int i = 5;

while(--i > 0)

printf("Loop ");

return 0;

}

Loop Loop Loop Loop

Loop Loop Loop Loop Loop

Loop Loop Loop Loop Loop LOOP

Infinite loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

#define loop for(;;)

int main()

{

printf("DONE");

loop;

return 0;

}

Compilation error

Done

Program never ends

None of the above

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?