c programming quiz

c programming quiz

University

20 Qs

quiz-placeholder

Similar activities

C Programming Lab Quiz-1

C Programming Lab Quiz-1

University

19 Qs

BTS(BTD) Slip Test-1

BTS(BTD) Slip Test-1

University

15 Qs

BE23CS407 - Design and Analysis of Algorithms (Unit-1)

BE23CS407 - Design and Analysis of Algorithms (Unit-1)

University

20 Qs

KL3271 - Kuis #8: Manajemen dan Estimasi Biaya

KL3271 - Kuis #8: Manajemen dan Estimasi Biaya

University

20 Qs

ASH Kerajinan Bahan Keras

ASH Kerajinan Bahan Keras

9th Grade - University

20 Qs

Mastering Time and Work Concepts

Mastering Time and Work Concepts

12th Grade - University

20 Qs

Examen Unidad 3 Circuitos Eléctricos UTA

Examen Unidad 3 Circuitos Eléctricos UTA

University

16 Qs

Lesson 3 Signal Conditioning and Conversion

Lesson 3 Signal Conditioning and Conversion

University

15 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?