Python QUIZ 2
Q:1. If list=['red','blue','green','yellow'], What will be the output of :
Q:2. Which function will remove an item from a list?
what will be the output of : print(list[3]) after running the code : list.sort(reverse=True)?
Q :4. Which statement is correct?
Q :5. Which method is used to arrange the items of a list in ascending order in Python?
Q :6. Which of the following is used for performing repetitive tasks in Python?
Q :7. How is a line, or a group of lines, related to the rest of the Python program?
Q :8. If numbers=[1,2,3,4,5] then how to get the largest value of this list?
Q :9.What should come in place of X if we want to print HI! 6 times?
Q :10. Which of the following is a valid singleton tuple?
SEARCH
LATEST
3-latest-65px
SECCIONS
Search This Blog
Powered by Blogger.
Blog Archive
- July 2023 (1)
- January 2023 (4)
- December 2022 (1)
- May 2022 (1)
- December 2021 (4)
- November 2021 (12)
- October 2021 (2)
- August 2021 (1)
- July 2021 (19)
- June 2021 (5)
- May 2021 (29)
- April 2021 (11)
- March 2021 (3)
-
Computer Network A computer network is a group of computers linked to each other that enables the computer to communicate with another compu...
-
Method Overriding Method overriding is a type of polymorphism in which a child class which is extending the parent class can provide d...
-
Array An Array is defined as the collection of similar types of data item stored at contiguous memory locations. Array are the derived data...
Operators in C
Operators An operator is a symbol that tells the compiler to perform specific mathematical or logical operations, based on the value provi...
No comments:
Post a Comment