Home / MCQ Bank / Computer
Computer Lists In Python

Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • [0.0, 0.5, 1.0, 1.5]

Related Computer Questions

What technology involves the use of machine learning algorithms to improve the efficiency of supply chain operations? What will be the output of the following Java program? import java.util.*; class Collection_Algos { public static void main(String args[]) { LinkedList list = new LinkedList(); list.add(new Integer(2)); list.add(new Integer(8)); list.add(new Integer(5)); list.add(new Integer(1)); Iterator i = list.iterator(); while(i.hasNext()) System.out.print(i.next() + " "); } } What will be the output of the following C code? #include <stdio.h> void main() { int x = 0; int *ptr = &x; printf("%d\n", *ptr); } If you will be displaying or printing your document on another computer, you'll want to make sure and select the ____________ option under the 'Save' tab. What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { float d; public: virtual void func(){ cout<<"Hello this is class A\n"; } }; class B: public A { int a = 15; public: void func(){ cout<<"Hello this is class B\n"; } }; int main(int argc, char const *argv[]) { A *a; a->func(); return 0; }