What is a correct syntax to output "Hello World" in Python?
Select one:
print("Hello World")
echo("Hello World")
echo "Hello World"
Which of the following statements are true?
Select one or more:
How do you insert COMMENTS in Python code?
# this is a comment
// this is a comment
-- this is a comment
/* this is a comment */
Which are the right syntax to create a variable in Python
int myVariable=55
myVariable=55
String myVariable
myVariable="Hello"
Which operator is used to multiply numbers?
*
x
%
#
How do you start writing a while loop in Python?
while x > y:
while x > y {
x > y while {
while( x > y)
Which are right syntax in order to define a function in Python
def myFunction(a):
def myFunction():
void myFunction()
myFunction():
myFunction()
function myFunction()
If there is a class named Mammal. Which is the right syntax to create a class named Monkey, which inherits Mammal
class Monkey(Mammal):
class Monkey:Mammal
class Monkey::Mammal
class Monkey extends Mammal
class Monkey inherits Mammal
If you have created a class named Car which includes a property named brand, which is the right syntax to create an object of Car
car=Car('Volvo')
car=new Car('Volvo')
Car car = new Car("Volvo")
Car car('Volvo')
Which one is right syntax for for-loop in Python
for x in range(1,7)
for(x=1; x<7; x++)
for(int x=1; x<7; x++)
for x=1 to 7