MCQ Buddy
Search here...
  • Home
  • MCQ Feed
  • Add Question
  • Programming Portal
  • English Portal
  • Login
  1. Home
  2. Engineering
  3. Problem Solving and Python Programming
  4. Question

M

Mr. Dubey • 100.69K Points
Coach

Q. Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?

  • (A) print(list1[0])
  • (B) print(list1[:2])
  • (C) print(list1[:-2])
  • (D) all of the mentioned
  • Correct Answer - Option(D)
  • Views: 793
  • Filed under category Problem Solving and Python Programming
Share

Explanation by: Mr. Dubey
slicing is allowed in lists just as in the case of strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs

Q. Point out the correct statement.

Q. Which of the following are not the components of the HCI approach to design?

Q. The sum and composition of two polynomials are always polynomials.

Q. Prevention of the unauthorised used of Resources refers too?

Q. A palette can be defined as a finite set of colors for managing the

Q. The accelerometer is used as a transducer to measure earthquake in Richter scale. Its design is based on the principle that ______.

Q. Gateway provides the connection between and

Q. Which of the following is an attribute that can uniquely identify a row in a table?

Q. Contingency table is prepared for _______ attribute data.

Q. The primary key in the section relation is


Question analytics

Share

Embed

WhatsApp

Facebook

Telegram

Download

Share in MCQ Buddy Groups

Share
Embed
Important Links
  • Browse All Categories
  • Subjects
  • Exams
  • Mock Test
  • Advance Search
  • Quiz
  • Duo Test
  • English Topics
Explore More Portals
  • UC Quiz
  • Hindi
  • State wise Portals
  • MCQ Buddy Lab
  • Engineering
  • Programming Portal
  • MB Shorts
  • NCERT Portal
  • Faculties Portal
  • Groups
  • Q & A
  • Spaces
  • Satya Sanatan
  • Keycrypt
Who we are?

We are nothing if we are alone. But we have a huge community of students who are helping you getting good study stuff free.

More Links
  • Download App
  • Advertise with us
  • Contact us
  • Youtube
  • Terms & Conditions
  • Refund Policy
  • Privacy Policy
  • Get the source code

Since 2020 - 2025 | Proudly Made with ♥ in India

Hosted on Hostinger