code

code

University

30 Qs

quiz-placeholder

Similar activities

MINERCRAFT QUIZ

MINERCRAFT QUIZ

KG - Professional Development

25 Qs

Skunks

Skunks

KG - University

25 Qs

All About Movie!

All About Movie!

1st Grade - Professional Development

25 Qs

BOBAGANG OR NAH??????

BOBAGANG OR NAH??????

University

25 Qs

Preliminary Quiz Fashionova 3rd Years

Preliminary Quiz Fashionova 3rd Years

University

25 Qs

Incheon, Iceland

Incheon, Iceland

KG - University

25 Qs

my little pony

my little pony

KG - University

26 Qs

Rugby Logos

Rugby Logos

KG - Professional Development

25 Qs

code

code

Assessment

Quiz

Fun

University

Hard

Created by

Sam Oswal

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be output of the following code

a="Hello"

print(a[::-1])

output = ?

0

olleh

Hello

olleH

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be output of the following code

int i=2;

int a[]={0,1,2,3,4};

printf("%d",i[a]);

2

0

1

Compilation error

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be output of the following code

for(int i=0;i<5;i++,i--){

printf("%d",i);

}

Compilation error

Runtime error

Infinite loop

None of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

x = 5

y = "Hello"

print(x + y)

What will be the output?

Error

Hello5

5Hello

He5llo

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python is interpreted language?

yes

no

not sure

It is assembled language

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

is %p a valid format specifier in c?

no way !

yes

It is just %d

not sure

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

does C and python both support switch statement?

only python does

only C does

no

yes

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?