Home / MCQ Bank / Computer
Computer Variable Names And Operators Difficulty: Medium

Which operator is used for exponentiation in Python?

Select the correct option to test your answer:

More Computer Questions

The unordered collection of properties, each of which has a name and a value is called What will be the output if we try to extract only the year from the following Python code? (time.struct_time(tm_year=2017, tm_mon=6, tm_mday=25, tm_hour=18, tm_min=26, tm_sec=6, tm_wday=6, tm_yday=176, tm_isdst=0)) import time t=time.localtime() print(t) In dynamic programming, the technique of storing the previously calculated values is called . . . . . . . . What will be the output of the following C++ code? #include <iostream> #include <sstream> using namespace std; int main() { stringstream mys(ios :: in | ios :: out); std :: string dat("The double value is : 74.79 ."); mys.str(dat); mys.seekg(-7, ios :: end); double val; mys >> val; val = val*val; mys.seekp(-7,ios::end); mys << val; std :: string new_val = mys.str(); cout << new_val; return 0; } What does the initialize method do in a Ruby class?