問題一覧
1
was conceived in the late 1980s, and its implementation was started in December 1989
Phyton programming language
2
Python programming language was conceived in the late ____s
1980s
3
When does Phyton Programming language implemented starts?
December 1989
4
The Python programming language was conceived in the late 1980s, and its implementation was started in December 1989 by _______ at (Centrum Wiskunde & Informatica (CWI) in the Netherlands) as a successor to the ABC programming language “capable of exception handling and interfacing with the Amoeba operating system.”
Guido van Rossum
5
Guido van Rossum, the author of Python Programming Language was reading the first published draft script of
“Monty Python's Flying Circus”, a 70s BBC Comedy
6
He wanted a short concise name for the language and his love for Monty Python was the reason for naming the language Python. What is the reason why he wanted a short concise name for the language?
his love for Monty Python was the reason for naming the language Python.
7
Python is developed under an _______________ approved open source license, making it freely usable and distributable, even for commercial use.
OSI (Open Source Initiative)
8
Python's license is administered by
Python Software Foundation
9
Python is a general purpose programming language that is also used for _________. But python can be used for everything that is done in java.
Scripting
10
Where does python and java are interpreted? . Most scripts are small programs with less than 100 lines.
Runtime
11
Most scripts are
small programs with less than 100 lines.
12
is the name given to entities like class, functions, variables etc. in Python.
Identifiers
13
It helps differentiating one entity from another.
Identifier
14
Identifiers can be a combination of
lowercase(a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore (_).
15
What are the examples of VALID Names
myClass, var_1 and print_to_screen
16
An identifier can be start with a digit. 1variable is valid,but variable1 is invalid
False, “cannot be start with digit”. 1variable is INVALID, Variable1 is VALID
17
Keywords can be used as identifiers.
False,Keywords cannot be used as Identifiers
18
We cannot use special symbols like !, @, #, $, % etc. in our identifier.
True
19
Identifier can be of any length.
True
20
is a way of collecting and organizing data in such a way that we can perform operations on these data in an effective way.
DATA STRUCTURE
21
Data Structures is about rendering data elements in terms of some relationship, for better organization and storage.
True
22
In simple language, Data Structures are structures programmed to store disordered data, so that various operations can be performed on it easily.
False
23
Choose the right statement for Data Structure
It represents the knowledge of data to be organized memory. It should be designed and implemented in such a way that it reduces the complexity and increases the efficiency.
24
Anything that can store data can be called as a data structure. What are the “Basic types of data structures”.
Integer, Float, Boolean, Char all are data structures.
25
Integer, Float, Boolean, Char, They are known as
Primitive Data Structures.
26
are used to store large and connected data.
Arrays, Linked list, Binary tree, Stack.
27
are used to store large and connected data. Some example are Arrays, Linked list, Binary tree, Stack.
Complex Data Structures
28
There are ____ collection (Arrays) data types in the Python programming language
4
29
a collection which is ordered and changeable. Allows duplicate members.
List[]
30
is a collection which is ordered and unchangeable. Allows duplicate members.
Tuple ()
31
is a collection which is unordered, unchangeable, and unindexed. No duplicate members.
Set {}
32
is a collection which is ordered and changeable. No duplicate members.
Dictionary
33
is a very commonly used linear data structure which consists of group of nodes in a sequence.
linked list
34
is a hierarchical data structure in which each node has at most two children generally referred as left child and right child.
Binary Tree
35
is an abstract data type with a bounded capacity. It is a simple data structure that allows adding and removing elements in a particular order.
Stack
36
is a finite set of instructions or logic, written in order, to accomplish a certain predefined task.
ALGORITHM
37
“_______” is not the complete code or program, it is just the core logic of a problem, which can be expressed either as an informal high- level description.
“Algorithm”
38
is a picture (graphical representation) of the problem - solving process. Pseudocode is an artificial and informal language that helps programmers develop algorithms. It is a "text based" detail (algorithmic) design tool
FLOWCHART
39
is an artificial and i formal language. It is a text - based detail design tool
Pseudocode
40
What design tool does pseudocode use in a detail
Algorithmic
41
Is this a best practice code / declaration? x = "Python programming”
False
42
Pseudocode is a "text-based" detail design tool.
True
43
Is this line of code correct? number_list[] = [42, 16, 18, 10, 30, 12, 15, 14, 19, 2]
false
44
There are no errors in this code snippet. print("Largest number") number_one = int(input("Enter first number: ")) number_two = int(input("Enter second number:")) number_three = int(input("Enter third number:")) largest_number(number_one, number_two; number_three)
False
45
Writing variables in Python programming language is case sensitive.
True
46
An identifier can be of any length.
True
47
Is this line of code correct? number_list = {6, 7, 10, 9, 4}
False
48
There are five collection (arrays) data types in Python programming language.
False
49
Is this line of code correct? names_list = ["Aimee", "Cathy", "Katrina", "Martha", "Shola"]
True
50
There are no errors in this code snippet. def addition(first_number, second_number): sum = first_number + second_number print("The sum of two numbers is {0:,}." .format(sum))
True
51
Is this line of code correct? number_list = [None] * 5
true
52
The acronym CWI means Centrum Wiskunde & Informatica.
True
53
There are no errors in this code snippet. number_input = int(input("Enter a number: ")) if number_input == 1: print("The equivalent color value is red.") elif number_input == 2: print("The equivalent color value is orange.") elif number_input == 3 print("The equivalent color value is yellow.") elif: print("There is no equivalent color value.")
False
54
Is this a valid variable name? us_dollar$
false
55
Anything that can store data can be called as a data structure, hence integer, float, boolean, and char are data structures.
True
56
Primitive data structure examples are integer, float, boolean, and stack.
False
57
Binary tree is a simple data structure that allows adding and removing elements in a particular order.
False
58
There are no errors in this program. integer_set = [5, 9, 6, 11, 14] sum = 0 for counter in range(5): sum = sum + integer_set(counter) print("The sum of array set is {0}." .format(sum))
false
59
There are no errors in this code snippet. print("Addition of two numbers") sum = addition(10, 2): print("The sum of two numbers is {0:}." .format(sum))
False
60
Is this a valid variable name? 1st_number
False
61
There are no errors in this code snippet. def area_circle(radius): area = 3.1416 * radius * radius print("The area of the circle is {0:,.4f}." .format(area)) Correct!
true
62
The list() Constructor It is also possible to use the list() constructor when creating a new list.
true
63
Access Items List items are indexed and you can access them by referring to the index number.
true
64
Negative indexing means start from the end, -1 refers to the last item, -2 refers to the second last item etc.
true