{"id":251556,"date":"2025-07-10T18:07:41","date_gmt":"2025-07-10T18:07:41","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=251556"},"modified":"2025-07-10T18:07:43","modified_gmt":"2025-07-10T18:07:43","slug":"which-of-the-following-are-true","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2025\/07\/10\/which-of-the-following-are-true\/","title":{"rendered":"Which of the following are true"},"content":{"rendered":"\n<p>Which of the following are true? <\/p>\n\n\n\n<p>Select ALL statements that apply. a. It is possible to add all the items from a list to another list. b. Once an item has been added to a list, it cannot subsequently be removed. c. Lists can only contain numbers. d. Lists can only contain letters.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-6-color\">The correct answer and explanation is:<\/mark><\/strong><\/p>\n\n\n\n<p>The correct answer is <strong>a. It is possible to add all the items from a list to another list.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Option a<\/strong>: <strong>It is possible to add all the items from a list to another list.<\/strong>\n<ul class=\"wp-block-list\">\n<li>This statement is true. In many programming languages, such as Python, you can add all the items from one list to another. One way to do this is using the <code>.extend()<\/code> method, which appends all the items from one list to another. For example, if you have a list <code>list1 = [1, 2, 3]<\/code> and <code>list2 = [4, 5]<\/code>, calling <code>list1.extend(list2)<\/code> will result in <code>list1<\/code> becoming <code>[1, 2, 3, 4, 5]<\/code>. This operation does not create a new list but modifies the original one.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Option b<\/strong>: <strong>Once an item has been added to a list, it cannot subsequently be removed.<\/strong>\n<ul class=\"wp-block-list\">\n<li>This statement is false. Items that have been added to a list can be removed at any time. For example, in Python, the <code>.remove()<\/code> method or <code>.pop()<\/code> method can be used to remove elements from a list. The <code>.remove()<\/code> method removes the first occurrence of a specified value, while <code>.pop()<\/code> removes an item by index. So, lists are dynamic and mutable, meaning you can add, remove, or modify items as needed.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Option c<\/strong>: <strong>Lists can only contain numbers.<\/strong>\n<ul class=\"wp-block-list\">\n<li>This statement is false. Lists can contain any type of data, not just numbers. For example, a list can contain strings, integers, floats, or even other lists. For example, <code>my_list = [1, 'hello', 3.14, [2, 3]]<\/code> is a valid list. Lists are versatile and can hold heterogeneous types of data.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Option d<\/strong>: <strong>Lists can only contain letters.<\/strong>\n<ul class=\"wp-block-list\">\n<li>This statement is also false. As mentioned earlier, lists can contain a variety of data types, not just letters or strings. A list could hold integers, floating-point numbers, boolean values, and even complex objects. For example, <code>letters = ['a', 'b', 'c']<\/code> is valid, but a list can also be <code>mixed_list = [1, 2.5, 'text', True]<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>In summary, the only correct statement is that it is possible to add all items from one list to another.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Which of the following are true? Select ALL statements that apply. a. It is possible to add all the items from a list to another list. b. Once an item has been added to a list, it cannot subsequently be removed. c. Lists can only contain numbers. d. Lists can only contain letters. The correct [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-251556","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/251556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=251556"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/251556\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=251556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=251556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=251556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}