[miniorange_social_sharing]
[TheChamp-Login]

/40

Final Exam for Python for Everyone (A to Z)

BEST OF LUCK!!!

1 / 40

1. Python can be install on both  Linux and  Windows

2 / 40

2. You can also use the remove() method to remove an element from the array

3 / 40

3.

The most important object defined in NumPy is an N-dimensional array type called?

A. ndarray
B. narray
C. nd_array
D. darray

4 / 40

4. Python allows you to extract the values into variables.

5 / 40

5.

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

  1. .py
  2. .python
  3. .p
  4. None of these

6 / 40

6.

How to copy one list to another in python?

A. l1[] = l2[]
B. l1[] = l2
C. l1[] = l2[:]
D. l1 = l2

7 / 40

7.

Which statement is correct?

A. List is immutable && Tuple is mutable
B. List is mutable && Tuple is immutable
C. Both are Mutable.
D. Both are Immutable

8 / 40

8. The format() method takes unlimited number of arguments

9 / 40

9. Python is a  high-level programming language.

10 / 40

10. A variable name must start with a letter or the underscore character

11 / 40

11. Python  was created by Guido van Rossum, and released in 1999.

12 / 40

12. Identity operators are used to compare the objects, not if they are equal, but if they are actually the same object, with the same memory location

13 / 40

13. The list’s remove() method only removes the first occurrence of the specified value.

14 / 40

14. What does the following code print?

x = -10if x < 0:    print("The negative number ",  x, " is not valid here.")print("This is always printed")
a.This is always printedb.The negative number -10 is not valid hereThis is always printedc.The negative number -10 is not valid here

15 / 40

15. Comments starts with a #

16 / 40

16. What is the index value of ‘i’ in string “Learning”

a. 5

b. 3

c. 6

d. 7

17 / 40

17.

Which function overloads the >> operator?

  1. more()
  2. gt()
  3. ge()
  4. None of the above

18 / 40

18. Python can connect to database systems.

19 / 40

19. You can also have multiple else statements on the same line:

20 / 40

20. What keyword would you use to add an alternative condition to an if statement?

a) else if
b) elseif
c) elif
d) None of the above

21 / 40

21.

What is the data type of print(type(0xFF))

22 / 40

22. The length of an array is always one more than the highest array index.

23 / 40

23. With the break statement we can stop the loop even if the while condition is true

24 / 40

24. + operator is used  to get output of multiple variables

25 / 40

25. The format() method takes the passed arguments

26 / 40

26. With the break statement we can stop the loop before it has looped through all the items

27 / 40

27. Arithmetic operators are used with numeric values to perform common mathematical operations

28 / 40

28.

 ____________________ can be defined as a named group of instructions that accomplish a specific task when it is invoked/called.

a. Function

b. Datatype

c. Token

d. Operator

29 / 40

29. To write and execute code in python, we first need to install Python on our system

30 / 40

30. Most recent major version of Python is Python 3

31 / 40

31. Python can be used on a server to create web applications?

32 / 40

32. Comparison operators are not  used to compare two values

33 / 40

33.

Which keyword is used to begin the definition of a function?

a. Define

b. DEF

c. def

d. Def

34 / 40

34. You can have if statements inside if statements, this is called nested if statements.

35 / 40

35. All keywords in Python are in _________
a) Capitalized
b) lower case
c) UPPER CASE
d) None of the mentioned

36 / 40

36. Which of the following is the correct extension of the Python file?

37 / 40

37. Who developed Python Programming Language?

38 / 40

38.

Which of the following statements assigns the value 25 to the variable x in Python:

  1. x ← 25
  2. x = 25
  3. x := 25
  4. int x = 25
  5. x << 25

39 / 40

39. Pascal Case
Each word starts with a capital letter:

40 / 40

40. What is another word for ‘iteration’ ?

a) Selection

b) Assignment

c) Sequencing

d) Repetition

Exit



[hurrytimer id=”2250″]
[wooct_product]

Wrong shortcode initialized


You must log in to see your results.



Wrong shortcode initialized


There are no questions atteched yet.





[ays_quiz_leaderboard id=”Your_Quiz_ID” from=”Y-m-d H:i:sa” to=”Y-m-d H:i:s”]

Category:


Wrong shortcode initialized


[WATU 1]

You must log in to see your results.