Python for Beginners - Session 1

Python for Beginners - Session 1
Test your knowledge of the basics of Python programming in this engaging quiz designed for beginners! With 10 carefully crafted questions, you’ll be able to assess your understanding and skills in Python.
Key Features:
- Multiple choice questions
- Variety of topics covered
- Instant feedback on your answers
Select all correct statements:
Pyhton uses natural languge elements instead of machine languge
The Python script is interpreted on the client-side
Python allows you to do a wide range of tasks using only one language
Python code can be run on virtually all operating systems (Windows, Linux, Mac OS)
Python is a compiled programming language which means you can run each line of code independently
Python is an object oriented programming language. The modularity allows the reuse of code and makes troubleshooting easier.
Python can be used free of charge
Python can be used in social science for qualitative research.
Select all correct statements:
If you want to quickly test out a small bit of code, you are better off using the Python Shell.
An IDE often provides syntax highlighting and code completion.
The Pyhton Shell lets you create projects and save your code.
Anaconda is a distirbutor for Python and IDEs.
While the Python Shell gives some feedback on errors, IDEs offer more sophisticated debugging features
What type is returned when using addition on a string and an integer?
An integer
A float
A sting
An error
a = "aaaaaaaaaaaaaa"
What code could you use to count the as in the string:
A.count("a")
A.find("a")
Len(a)
What code gives you the outcome: Hi 2 all
Note: >> indicates a new line of code
>> a = "hi 2 all" >> print(a)
>> a, b, c = "Hi", 3, "all" >> print(a,2,c)
>> a =2 b = "Hi {} all".format(a) >> print(b)
>> a = "Hi to all" >> b = a.replace("2", "to") >> print(b)
>> a = "Hi 2 all of you" >> print(a[0:7])
>> a = "Hi 2 all of you" >> print(a[-15:8])
>>a, b, c = "hi", 2, "ALL" >> print(a.upper(), b, c.lower())
>> a, b, c = "Hi ", "2 ", "all" >> d = a+b+c >> print(d)
How can you change the value stored in a variable?
==
!=
=
Is operator
You can delete the old varibale and then create a new variable and assign it the new value
Assume you have the following variable: x = 10
Which of the following would allow you to increase the value of x every time you used it?
X *= 2
X += -1
X =+ 5
X += x
{"name":"Python for Beginners - Session 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of the basics of Python programming in this engaging quiz designed for beginners! With 10 carefully crafted questions, you’ll be able to assess your understanding and skills in Python.Key Features:Multiple choice questionsVariety of topics coveredInstant feedback on your answers","img":"https:/images/course1.png"}
More Quizzes
Python for Beginners
4228
Introduction to Python - Reading and writing to a file - Starter Activity
420
Introduction to Programming Test
6323
Zero to Hero Teacher Assistant Review
11626
C++ (classes quiz) First Lecture
11612
Questions based on c programming
12611
Java Quiz by Luxoft Java Chapter
191082
Technophobe or Technogeek?
840
Computer - Revision (Lesson 1, 2, 3,4)
201057
Classin quiz
11632
Computer class1
15824
Strings Test
11622