Workshop Quiz

Workshop Quiz

University

25 Qs

quiz-placeholder

Similar activities

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Spreadsheet Fundamentals - Quiz2

Spreadsheet Fundamentals - Quiz2

University

20 Qs

Computer Organization and Processor

Computer Organization and Processor

University

20 Qs

Računarstvo i informatika I

Računarstvo i informatika I

University

20 Qs

Elements of 2D & 3D

Elements of 2D & 3D

University

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

ITE TEST 2

ITE TEST 2

University

20 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

Workshop Quiz

Workshop Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

041_CSE1_Aryan Raj

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What should be the output for the following code:

for i in range(1,8)

print(1)

1 2 3 4 5 6 7 8

1 1 1 1 1 1 1

1 2 3 4 5 6 7

syntax error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a=2 and b=3 then the value of print('a+b') will be:

5

a+b

2

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output for the following:

a=2;b=3

a,b=b,a

print(a,b)

2 3

5

3 2

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a='56' and b='23' then print(a+b) will be:

2356

79

5623

69

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to install a library in python:

#pip install <library name>

pip install <library name>

$pip install <library name>

_pip install <library name>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Animal:

def eat(self):

print("I can eat!")

class Dog(Animal):

def bark(self):

print("I can bark woof woof !!")

class Cat(Animal):

def sleep(self):

print("I am sleeping!")

In the following code, which class is parent class:

Dog

Cat

Animal

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does class man(human) mean:

human is the inheritance of man

human is the argument for the function man

man is the inheritance of human

this line of code is not supported in python

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?