c programming quiz

c programming quiz

University

20 Qs

quiz-placeholder

Similar activities

Diodos y semiconductores

Diodos y semiconductores

University

20 Qs

Тест по мартеновской печи

Тест по мартеновской печи

University

16 Qs

WEEK11-12 Flyback,PF, Half-Bridge

WEEK11-12 Flyback,PF, Half-Bridge

University

17 Qs

DBMS

DBMS

University

20 Qs

Antecedentes Conocimiento Mecánica Orbital

Antecedentes Conocimiento Mecánica Orbital

University

15 Qs

PM CLINIC MOTOR SEMANA 1

PM CLINIC MOTOR SEMANA 1

University

17 Qs

Cuestionario sobre IA en Construcción

Cuestionario sobre IA en Construcción

University

16 Qs

PENILAIAN AKHIR FORMATIF

PENILAIAN AKHIR FORMATIF

University

17 Qs

c programming quiz

c programming quiz

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

Sindhuja. M

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SET A = 5

SET B = 10

IF A > B THEN

PRINT "A"

ELSE

PRINT "B"

END IF

A

B

5

10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SET X = 3

WHILE X < 6 DO

PRINT X

SET X = X + 1

END WHILE

3 4 5

3 4 5 6

3 4 5 6 7

Infinite Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SET SUM = 0

FOR I = 1 TO 4 DO

SUM = SUM + I

END FOR

PRINT SUM

10

6

15

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

INPUT N

SET FACT = 1

FOR I = 1 TO N DO

FACT = FACT * I

END FOR

PRINT FACT

Prints sum of N natural numbers

Prints square of N

Prints factorial of N

Prints N

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SET A = 2

SET B = 3

SET C = A

SET A = B

SET B = C

PRINT A, B

2, 3

3, 2

3, 3

2, 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SET A = 7

IF A MOD 2 = 0 THEN

PRINT "Even"

ELSE

PRINT "Odd"

END IF

Even

Odd

7

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

INPUT N

SET SUM = 0

WHILE N > 0 DO

SUM = SUM + (N MOD 10)

N = N DIV 10

END WHILE

PRINT SUM

Count digits of N

Count digits of N

Reverse N

Multiply digits of N

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?