wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

coders club quiz

Total questions: 33

Worksheet time: 22mins

Name
Class
Date
1.

Come back to me

Come back to me

a)

for loops

b)

return statement

c)

Conditional statements

d)

loop over flow

2.

LOVE ME LIKE U DO,

LOVE ME LIKE U DO,

LOVE ME LIKE U DO

a)

MAIN()

b)

FOR LOOP

c)

FUNCTIONS

d)

SWITCH STATEMENTS

3.

Ye muddu ye movidannadi

ye poddo rasunnadi

a)

WHILE LOOP

b)

if STATEMENTS

c)

DO-WHILE LOOP

d)

START()

4.

kallu Kallu plus, vallu villu minus

a)

return statement

b)

Arithmetic operaters

c)

loops

d)

float

5.

Sun Saathiya Maahiya
Barsa De Ishqa Di Syaahiyaan

a)

free()

b)

get()

c)

scanf()

d)

printf()

6.

Ringa Ringa Ringa Ringa

Ringa Ringa Ringa Ringa Reeee

a)

min heap

b)

max heap

c)

double linked list

d)

Circular linked list

7.

Aa door number okati dashu
Yabai-aaru adda geetha
Sunna rendu silku nagar moodo line

a)

pointer

b)

printf()

c)

integer

d)

float

8.

It's me, hi,

I'm the problem,

it's me

a)

Error

b)

syntax

c)

;

d)

none of the above

9.

Oops, I did it again, I played with your heart

a)

error

b)

switch cases

c)

Functions

d)

Recursion

10.

Arey Padithe Line Lo Padathadi
Lekapothe Thidathadi

a)

pass( )

b)

Continue statement

c)

if statement

d)

switch statement

11.

"AGE"

a)

string

b)

integer

c)

float

d)

double

12.

for(i = 1; i <= 5; i++) {

printf("⭐");

}

a)

b)

⭐⭐

c)

⭐⭐⭐⭐

d)

⭐⭐⭐⭐⭐

13.

How can I display a message on the screen using C?

a)

printf()

b)

scanf()

c)

get()

d)

puts()

14.

Which concept is most suitable for the image above?

a)

tuple

b)

List

c)

Dictionary

d)

Queue

15.

Who is the person shown in the image?

a)
  1. C – Dennis Ritchie

b)
  1. Python – Guido van Rossum

c)
  1. Java – James Gosling

d)
  1. R – Ross Ihaka & Robert Gentleman

16.

Which concept is most suitable for the image above?

a)

Set

b)

List

c)

Dictionary

d)

Queue

17.

Who is the person shown in the image

a)
  1. C – Dennis Ritchie

b)
  1. Python – Guido van Rossum

c)
  1. Java – James Gosling

d)
  1. R – Ross Ihaka & Robert Gentleman

18.

Which of the following is the correct syntax to declare a pointer in C?


a)
  1. ptr int*;

b)
  1. *int ptr;

c)
  1. int *ptr;

d)
  1. int ptr*;

19.

Output: 0 1 4 9 16

Which code produces this output?

a)
  1. for(int i=0;i<5;i++){

  2. printf("%d ", i*i);

}

b)
  1. for(int i=1;i<=5;i++) {

  2. printf("%d ", i*i);

  3. }

c)
  1. for(int i=0;i<5;i++){

  2. printf("%d ", i+i);

  3. }

d)
  1. for(int i=1;i<=5;i++){

  2. printf("%d ", i+i);

  3. }

20.

Output: 1 8 27 64 125

Which code produces this output?

a)
  1. for(int i=1;i<=5;i++){

  2. printf("%d ", i*i*i);

    }

b)
  1. for(int i=0;i<5;i++) {

  2. printf("%d ", i*i*i);

  3. }

c)
  1. for(int i=1;i<=5;i++){

  2. printf("%d ", i*i);

  3. }

d)
  1. for(int i=1;i<=5;i++) {

  2. printf("%d ", i+i+i);

  3. }

21.

Output: 0 1 1 2 3 5 8

Which code produces this output?

a)

int a=0,b=1,c,i;

printf("%d %d ", a,b);

for(i=2;i<7;i++){

c=a+b;

printf("%d ", c);

a=b;

b=c;

}

b)

int a=1,b=1,c;

printf("%d %d ", a,b);

for(int i=3;i<=7;i++){

c=a+b;

printf("%d ", c);

a=b;

b=c;

}

c)
  1. for(int i=0;i<7;i++){

  2. printf("%d ", i);

  3. }

d)
  1. for(int i=1;i<=7;i++){

  2. printf("%d ", i*i);

    }

22.

Hello

Hello

Hello

Hello

Hello

a)
  1. for(int i=1;i<=5;i++){

  2. printf("Hello\n");

  3. }

b)
  1. for(int i=0;i<5;i++){

  2. printf("Hello");

  3. }

c)
  1. for(int i=1;i<=5;i++){

  2. printf("Hello ");

  3. }

d)
  1. for(int i=1;i<=5;i++){

  2. printf("Hi\n");

  3. }

23.
  1. Output: 0 1 2 3 4 5 6 7 8 9

    Which code produces this output?

a)
  1. for(int i=0;i<10;i++){

  2. printf("%d ", i);

  3. }

b)
  1. for(int i=1;i<=10;i++){

  2. printf("%d ", i);

  3. }

c)
  1. for(int i=0;i<=9;i++){

  2. printf("%d ", i*i);

  3. }

d)
  1. for(int i=1;i<=9;i++){

  2. printf("%d ", i);

  3. }

24.

A baker in C wants to know how many full groups of 3 cupcakes he can make from 7 cupcakes.

What will this code print?

a)

2.33

b)

2

c)

3

d)

an error will occur

25.

You have a list of race car drivers: drivers = ["Hamilton", "Verstappen", "Norris"]. How would you get the name of the driver who finished in second place ("Verstappen")?

a)

drivers[0]

b)

drivers[1]

c)

drivers[2]

d)

drivers.get(2)

26.

A new Java programmer writes the following line of code to store their age, but it causes an error. What's missing?

age = 25;

a)

A semicolon at the end.

b)

The data type declaration

c)

Quotation marks around 25.

d)

The 'var' keyword.

27.

What is the crucial difference between the = symbol and the == symbol in C?

a)

= is for comparison and == is for assignment.

b)

There is no difference; they can be used interchangeably.

c)

= is for numbers and == is for strings.

d)

= is for assignment and == is for comparison.

28.

A programmer writes a simple if statement, but it keeps giving them an "IndentationError". Why?

weather = "sunny"

if weather == "sunny":

print("Wear sunglasses!")

a)

The print statement is not indented.

b)

Python requires curly braces {} around the if block.

c)

The condition needs to be in parentheses.

d)

A semicolon is missing at the end of the print line.

29.

What is the full, complete command to print the message "Hello, Java!" followed by a new line?

a)

System.out.print("Hello, Java!");

b)

Console.WriteLine("Hello, Java!");

c)

print("Hello, Java!");

d)

System.out.println("Hello, Java!");

30.

How do you write a quick, single-line note (a comment) in C, Python, and Java, respectively?

a)

C: /*, Python: #, Java: //

b)

C: //, Python: #, Java: //

c)

C: #, Python: //, Java: //

d)

C: //, Python: //, Java: #

31.

You have two strings, part1 = "Hello" and part2 = "World". How can you join them together to get the string "HelloWorld"?

a)

part1 & part2

b)

part1.join(part2)

c)

part1 + part2

d)

concat(part1, part2)

32.

Using the analogy of baking cookies, what is the difference between a Class and an Object in Java?

a)

A Class is the cookie, and an Object is the cookie cutter.

b)

A Class and an Object are the same thing.

c)

A Class is a function, and an Object is a variable.

d)

A Class is the cookie cutter, and an Object is the actual cookie.

33.

You want to read a number that a user types into your C program. Which function is commonly used for this, and which special symbol is required before the variable name?

a)

The function is printf(), and you need the * symbol.

b)

The function is gets(), and you don't need a symbol.

c)

The function is scanf(), and you need the & symbol.

d)

The function is cin(), and you need the >> symbol.