C++ Test -Beginners
September 7, 2021
Show all

Python Intro test

3

Introduction to Python

1 / 23

Which of the following are examples of algorithms?

2 / 23

Who developed the Python language?

3 / 23

What is the output of print 0.1 + 0.2 == 0.3?

4 / 23

In which year was the Python language developed?

 

5 / 23

In which language is Python written?

 

6 / 23

 Which one of the following is the correct extension of the Python file?

 

7 / 23

In which year was the Python 3.0 version developed?

8 / 23

What do we use to define a block of code in Python language?

 

9 / 23

Study the following statement

        z = {"x":0, "y":1} 

Which of the following is the correct statement?

 

10 / 23

Which character is used in Python to make a single line comment?

 

 

11 / 23

What error will occur when you execute the following code?

           MANGO = APPLE

 

12 / 23

9) Which of the following statements is correct regarding the object-oriented programming concept in Python?

 

 

13 / 23

Which of the following is not a keyword in Python language?

14 / 23

Which of the following statements is correct for variable names in Python language?

 

 

15 / 23

Study the following program:

                         d = {0, 1, 2} 

                         for x in d:      

                         print(x)  

What will be the output of this statement?

 

16 / 23

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?

 

17 / 23

Which of the following precedence order is correct in Python?

18 / 23

Which of the following declarations is incorrect in python language?

 

19 / 23

Which one of the following has the same precedence level?

20 / 23

Which one of the following has the highest precedence in the expression?

 

21 / 23

Which of these is not a core datatype?

22 / 23

Which of the following functions is a built-in function in python language?

 

23 / 23

All keywords in python are in


Warning: Trying to access array offset on value of type null in /home/trafcc/techack.in/wp-content/themes/betheme/includes/content-single.php on line 286
admin

Leave a Reply

Your email address will not be published. Required fields are marked *