click below
click below
Normal Size Small Size show me how
cs0048 sa1
| Question | Answer |
|---|---|
| watermelon | chicken |
| marklusterio | macrostereo |
| juderuzell | drewpuzzle |
| The only drawback of using python is it cannot use low-level modules. | False |
| The syntax of methods is instance.method(Object). | False |
| Python is _____________ application. | Interpreted |
| Python does not allow chained comparison. | False |
| Python version 3.6 was release 2015. | False |
| Python is an _____________language. It means it executes the code line by line. | interpreter |
| Operators with the same precedence are evaluated in which manner? | Left to Right |
| What is the order of precedence in python? i) Parentheses ii) Exponential iii) Multiplication iv) Division v) Addition vi) Subtraction | i,ii,iii,iv,v,vi |
| Which of the following is not a keyword? | eval |
| Python has support for an _________mode, which allows interactive testing and debugging of snippets of cod. | interactive |
| The elsif is the same as else if in C++. | False |
| Python version 3.4 was release March 2014. | True |
| Is Python case sensitive when dealing with identifiers? | Yes |
| Is a high-level, interpreted, interactive and object-oriented scripting language. | Python |
| Python has support for an _________mode, which allows interactive testing and debugging of snippets of cod. | interactive |
| What symbol was introduce in Python 3.5 known as infix operator? | @ |
| The syntax of methods is instance.method(Object). | False |
| The only drawback of using python is it cannot use low-level modules. | False |
| Python can be easily integrated to C++, DOM, Active X and COBRA. | False |
| Python is similar to the following PL _____________. | PERL and PHP |
| Python 3 is backward compatible with previous versions. | False |
| Python has fewer ________ constructions than other languages. | syntactical |
| What is the output of this expression, 3*1**3? | 3 |
| There are how many keywords in Python 3.x interpreter. | 33 |
| The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same. | True |
| Python version 3.5 was release 2014. | False |
| Python version 3.3 was release 2012. | True |
| Python uses duck typing and has typed objects but untyped variable names. | True |
| Python is a compiled program. | False |
| Unnamed functions are implemented using lambda expressions. | True |
| Python allows programmer to define their own type using def function, which are not use for object-oriented programming. | False |
| Python is an example of an interpreter program. | True |
| It uses ________ keywords frequently whereas the other languages use punctuations. | English |
| What is the maximum possible length of an identifier? | Any length |
| Evaluate the expression given below if A = 16 and B = 15. A % B // A | 0 |
| Which of the following cannot be a variable? | in |
| >>> symbol is knows as. | Python prompt |
| Which one of the following has the highest precedence in the expression? | Parenthesis |
| What will be the value of the following Python expression? 4 + 3 % 5 | 7 |
| Operators with the same precedence are evaluated in which manner? | Left to Right |
| Python uses curly brackets like C, C++ and Java to denote delimit blocks. | False |
| Python version 3.6 was release 2015. | False |
| Python Version 3.7 was release 2017. | False |
| Python is portable to any hardware device with different interface on all platform. | False |
| Which of the following is invalid? __hjt__=1, _a=1, __a = 1 | None of the mentioned |
| Python can run on a wide variety of hardware platforms and has the same interface on all platforms. | True |
| Mathematical operations can be performed on a string. | False |
| Python is an _____________language. It means it executes the code line by line. | interpreter |
| Which of the following is invalid? | None of the mentioned |
| Python provides a Python Shell (also known as Python __________Shell) | Interactive |
| Which one of the following has the same precedence level? | Addition and Subtraction |
| Python Command Prompt waits for the input command from the user. | False |
| What is the answer to this expression, 22 % 3 is? | 1 |
| Which s the correct operator for power(xy)? | X**y |
| In Python, a distinction between expressions and statements is rigidly ignored. | False |
| Python provides a better structure and support for large programs than _______ scripting. | shell |
| The expression Int(x) implies that the variable x is converted to integer. | False |
| Which of the following is true for variable names in Python? | unlimited length |
| Why are local variable names beginning with an underscore discouraged? | they are used to indicate a private variables of a class |
| Which one of these is floor division? | // |
| Python version 3.4 was release March 2014. | True |
| Which of the following is an invalid variable? | 1st_string |
| Which of the following operators has its associativity from right to left? | ** |
| Python's bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh. | True |
| What will be the value of X in the following Python expression? X = 2+9*((3*12)-8)/10 | 27.2 |
| Which among the following list of operators has the highest precedence? +, -, **, %, /, <>, | | ** |
| What will be the value of x in the following Python expression? x = int(43.55+2/2) | 44 |
| Which of the following expressions is an example of type conversion? | 4.0 + float(3) |
| The expression 2**2**3 is evaluates as: (2**2)**3. | True |
| What will be the value of the following Python expression? float(4+int(2.39)%2) | 4.0 |
| What will be the output of the following Python expression? print(4.00/(2.0+2.0)) | 1.0 |