Which of the following statements is correct regarding the object-oriented programming concept in Python?
Which of the following statements is correct regarding the object-oriented programming concept in Python?
What is the maximum possible length of an identifier?
What is the maximum possible length of an identifier?
Study the following program:
- a = 1
- while True:
- if a % 7 = = 0:
- break
- print(a)
- a += 1
Which of the following is correct output of this program?
Study the following program:
- a = 1
- while True:
- if a % 7 = = 0:
- break
- print(a)
- a += 1
Which of the following is correct output of this program?
Study the following statements:
>>> print(ord('h') - ord('z'))
What will be the output of this statement?
Study the following statements:
>>> print(ord('h') - ord('z'))
What will be the output of this statement?
In which language is Python written?
In which language is Python written?
Study the following program:
- i = 1:
- while True:
- if i%3 == 0:
- break
- print(i)
Which of the following is the correct output of this program?
Study the following program:
- i = 1:
- while True:
- if i%3 == 0:
- break
- print(i)
Which of the following is the correct output of this program?
Study the following function:
round(4.576)
What will be the output of this function?
Study the following function:
round(4.576)
What will be the output of this function?
Which character is used in Python to make a single line comment?
Which character is used in Python to make a single line comment?
Which of the following statements is correct for variable names in Python language?
Which of the following statements is correct for variable names in Python language?
In which year was the Python language developed?
In which year was the Python language developed?
What error will occur when you execute the following code?
MANGO = APPLE
What error will occur when you execute the following code?
MANGO = APPLE
What do we use to define a block of code in Python language?
What do we use to define a block of code in Python language?
Who developed the Python language?
Who developed the Python language?
Study the following program:
- d = {0: 'a', 1: 'b', 2: 'c'}
- for i in d:
- print(i)
What will be the output of this statement?
Study the following program:
- d = {0: 'a', 1: 'b', 2: 'c'}
- for i in d:
- print(i)
What will be the output of this statement?
Study the following code:
>>>"javatpoint"[5:]
What will be the output of this code?
Study the following code:
>>>"javatpoint"[5:]
What will be the output of this code?
Study the following program:
- x = 'pqrs'
- for i in range(len(x)):
- x[i].upper()
- print (x)
Which of the following is the correct output of this program?
Study the following program:
- x = 'pqrs'
- for i in range(len(x)):
- x[i].upper()
- print (x)
Which of the following is the correct output of this program?
Study the following statement:
>>>"a"+"bc"
What will be the output of this statement?
Study the following statement:
>>>"a"+"bc"
What will be the output of this statement?
Study the following program:
- class Std_Name:
- def __init__(self, Std_firstName, Std_Phn, Std_lastName):
- self.Std_firstName = Std_firstName
- self. Std_PhnStd_Phn = Std_Phn
- self. Std_lastNameStd_lastName = Std_lastName
-
- Std_firstName = "Wick"
- name = Std_Name(Std_firstName, 'F', "Bob")
- Std_firstName = "Ann"
- name.lastName = "Nick"
- print(name.Std_firstName, name.Std_lastName)
What will be the output of this statement?
Study the following program:
- class Std_Name:
- def __init__(self, Std_firstName, Std_Phn, Std_lastName):
- self.Std_firstName = Std_firstName
- self. Std_PhnStd_Phn = Std_Phn
- self. Std_lastNameStd_lastName = Std_lastName
-
- Std_firstName = "Wick"
- name = Std_Name(Std_firstName, 'F', "Bob")
- Std_firstName = "Ann"
- name.lastName = "Nick"
- print(name.Std_firstName, name.Std_lastName)
What will be the output of this statement?
Study the following statements:
>>> print(0xA + 0xB + 0xC)
What will be the output of this statement?
Study the following statements:
>>> print(0xA + 0xB + 0xC)
What will be the output of this statement?
Study the following code:
>>> print (r"\njavat\npoint")
What will be the output of this statement?
Study the following code:
>>> print (r"\njavat\npoint")
What will be the output of this statement?
Study the following function:
any([5>8, 6>3, 3>1])
What will be the output of this code?
Study the following function:
any([5>8, 6>3, 3>1])
What will be the output of this code?
Which of the following is correctly evaluated for this function?
pow(x,y,z)
Which of the following is correctly evaluated for this function?
pow(x,y,z)
Study the following code:
x = ['XX', 'YY']
for i in a:
i.lower()
print(a)
What will be the output of this program?
Study the following code:
x = ['XX', 'YY']
for i in a:
i.lower()
print(a)
What will be the output of this program?
Which one of the following has the same precedence level?
Which one of the following has the same precedence level?
Study the following program:
- class book:
- def __init__(a, b):
- a.o1 = b
-
- class child(book):
- def __init__(a, b):
- a.o2 = b
-
- obj = page(32)
- print "%d %d" % (obj.o1, obj.o2)
Which of the following is the correct output of this program?
Study the following program:
- class book:
- def __init__(a, b):
- a.o1 = b
-
- class child(book):
- def __init__(a, b):
- a.o2 = b
-
- obj = page(32)
- print "%d %d" % (obj.o1, obj.o2)
Which of the following is the correct output of this program?