click below
click below
Normal Size Small Size show me how
python f2
| Question | Answer |
|---|---|
| String are sequence of character data. | true? |
| Python has an in-built function type() to ascertain the data type of a certain value. Group of answer choices True False | true? |
| Boolean is a data with one of two built-in values True or False. Group of answer choices True False | true |
| There are three distinct numeric types: integers, floating point numbers, and complex numbers. Group of answer choices True False | true? |
| What is the output of the given python script: type(2+7j) Group of answer choices < class ‘float’> < class ‘str’> <class ‘int’> <class ‘complex’> | <class ‘complex’>? |
| A sequence of character data. Group of answer choices String Integer Float Boolean | String? |
| Float is positive or negative whole numbers. Group of answer choices True False | false? |
| Float is positive or negative whole numbers. Group of answer choices True False | false? |
| A sequence of operands and operators. Group of answer choices Computation Expression Values Data Types | expression? |
| Integer is positive or negative whole numbers. Group of answer choices True False | true? |
| An unordered collection of data in a key:value pair form. Group of answer choices String Dictionary Tuple List | dictionary? |
| In Python statement x = a + 3 - b: a + 3 - b is Group of answer choices expression terms operands statement | expression? |
| A type of error where the Python could not figure out how to read your program. Group of answer choices Exception Logical Syntax Run-time | syntax? |
| Given the code below: x = 20 y = 25 print (x >= y) What will be the output? Group of answer choices True No output 20 False | false? |
| Given the code below: x = 20 y = 25 x is y What will be the output? Group of answer choices False True 25 20 | false |
| Run-time error is type of error where the Python could not figure out how to read your program. Group of answer choices True False | false? |
| Membership operators are used to compare the objects, not if they are equal, but if they are actually the same object. Group of answer choices True False | false? |
| Assignment operators are used with numeric values to perform common mathematical operations. Group of answer choices True False | true? |
| Given the code below: x = [“one”, “two”, “three”] print (“three” in x) What will be the output? Group of answer choices one True False No output | true? |
| In Python statement x = a + 3 - b: a and b are: Group of answer choices expression terms operands statement | operands? |
| Break statement stop the loop before it has looped through all the items. Group of answer choices True False | true? |
| Given the code below: for i in range(1,8): if i%2: continue print(i, end=' ', flush=True) What will be the output? Group of answer choices 2468 2 4 6 246 2 4 6 8 | 2 4 6? |
| Given the code below: i=1 while i < 5: print(i, end =' ', flush = True) i += 1 What will be the output? Group of answer choices 1234 12 12345 123 | 1234? |
| The if statement iterates over a sequence of objects. Group of answer choices True False | false? |
| Continue statement stop the current iteration of the loop and continue with the next. Group of answer choices True False | true? |
| What is the final value of x? x=0 while (x < 100): x += 2 print(x, end =' ', flush = True) What will be the output? Group of answer choices 99 None , this is an infinite loop 101 100 | 100? |
| How many choices are possible when using a single if-else statement? Group of answer choices 3 4 2 1 | 2? |
| Given the code below: for i in range(1, 20, 4): print(i, end=' ', flush=True) What will be the output? Group of answer choices 159131720 1591317 1 5 9 13 17 1 5 9 13 17 20 | 1 5 9? |
| Given the code below: x=3 while i < 8: print(x, end =' ', flush = True) x += 1 What will be the output? Group of answer choices 234567 23456 345 34567 | 34567 |
| 27 | |
| String are sequence of character data. | true? |
| Python has an in-built function type() to ascertain the data type of a certain value. Group of answer choices True False | true? |
| Boolean is a data with one of two built-in values True or False. Group of answer choices True False | true |
| There are three distinct numeric types: integers, floating point numbers, and complex numbers. Group of answer choices True False | true? |
| What is the output of the given python script: type(2+7j) Group of answer choices < class ‘float’> < class ‘str’> <class ‘int’> <class ‘complex’> | <class ‘complex’>? |
| A sequence of character data. Group of answer choices String Integer Float Boolean | String? |
| Float is positive or negative whole numbers. Group of answer choices True False | false? |
| Float is positive or negative whole numbers. Group of answer choices True False | false? |
| A sequence of operands and operators. Group of answer choices Computation Expression Values Data Types | expression? |
| Integer is positive or negative whole numbers. Group of answer choices True False | true? |
| An unordered collection of data in a key:value pair form. Group of answer choices String Dictionary Tuple List | dictionary? |
| In Python statement x = a + 3 - b: a + 3 - b is Group of answer choices expression terms operands statement | expression? |
| A type of error where the Python could not figure out how to read your program. Group of answer choices Exception Logical Syntax Run-time | syntax? |
| Given the code below: x = 20 y = 25 print (x >= y) What will be the output? Group of answer choices True No output 20 False | false? |
| Given the code below: x = 20 y = 25 x is y What will be the output? Group of answer choices False True 25 20 | false |
| Run-time error is type of error where the Python could not figure out how to read your program. Group of answer choices True False | false? |
| Membership operators are used to compare the objects, not if they are equal, but if they are actually the same object. Group of answer choices True False | false? |
| Assignment operators are used with numeric values to perform common mathematical operations. Group of answer choices True False | true? |
| Given the code below: x = [“one”, “two”, “three”] print (“three” in x) What will be the output? Group of answer choices one True False No output | true? |
| In Python statement x = a + 3 - b: a and b are: Group of answer choices expression terms operands statement | operands? |
| Break statement stop the loop before it has looped through all the items. Group of answer choices True False | true? |
| Given the code below: for i in range(1,8): if i%2: continue print(i, end=' ', flush=True) What will be the output? Group of answer choices 2468 2 4 6 246 2 4 6 8 | 2 4 6? |
| Given the code below: i=1 while i < 5: print(i, end =' ', flush = True) i += 1 What will be the output? Group of answer choices 1234 12 12345 123 | 1234? |
| The if statement iterates over a sequence of objects. Group of answer choices True False | false? |
| Continue statement stop the current iteration of the loop and continue with the next. Group of answer choices True False | true? |
| What is the final value of x? x=0 while (x < 100): x += 2 print(x, end =' ', flush = True) What will be the output? Group of answer choices 99 None , this is an infinite loop 101 100 | 100? |
| How many choices are possible when using a single if-else statement? Group of answer choices 3 4 2 1 | 2? |
| Given the code below: for i in range(1, 20, 4): print(i, end=' ', flush=True) What will be the output? Group of answer choices 159131720 1591317 1 5 9 13 17 1 5 9 13 17 20 | 1 5 9? |
| Given the code below: x=3 while i < 8: print(x, end =' ', flush = True) x += 1 What will be the output? Group of answer choices 234567 23456 345 34567 | 34567 |
| 27/30 |