問題一覧
1
Is this line of code correct? number_list = {6, 7, 10, 9, 4}
False
2
are used to store large and connected data.
Arrays, Linked list, Binary tree, Stack.
3
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
4
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.
5
Is this line of code correct? number_list = [None] * 5
true
6
Python is developed under an _______________ approved open source license, making it freely usable and distributable, even for commercial use.
OSI (Open Source Initiative)
7
a collection which is ordered and changeable. Allows duplicate members.
List[]
8
is a hierarchical data structure in which each node has at most two children generally referred as left child and right child.
Binary Tree
9
is a very commonly used linear data structure which consists of group of nodes in a sequence.
linked list
10
Negative indexing means start from the end, -1 refers to the last item, -2 refers to the second last item etc.
true
11
An identifier can be of any length.
True
12
Most scripts are
small programs with less than 100 lines.
13
Is this a valid variable name? 1st_number
False
14
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
15
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
16
What design tool does pseudocode use in a detail
Algorithmic
17
Python programming language was conceived in the late ____s
1980s
18
is the name given to entities like class, functions, variables etc. in Python.
Identifiers
19
The acronym CWI means Centrum Wiskunde & Informatica.
True
20
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
21
is a collection which is unordered, unchangeable, and unindexed. No duplicate members.
Set {}
22
It helps differentiating one entity from another.
Identifier
23
Python's license is administered by
Python Software Foundation
24
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
25
Is this line of code correct? number_list[] = [42, 16, 18, 10, 30, 12, 15, 14, 19, 2]
false
26
is a collection which is ordered and unchangeable. Allows duplicate members.
Tuple ()
27
There are ____ collection (Arrays) data types in the Python programming language
4
28
is a collection which is ordered and changeable. No duplicate members.
Dictionary
29
Is this a valid variable name? us_dollar$
false
30
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.
31
What are the examples of VALID Names
myClass, var_1 and print_to_screen
32
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
33
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
34
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
35
Anything that can store data can be called as a data structure, hence integer, float, boolean, and char are data structures.
True
36
When does Phyton Programming language implemented starts?
December 1989
37
Keywords can be used as identifiers.
False,Keywords cannot be used as Identifiers
38
In simple language, Data Structures are structures programmed to store disordered data, so that various operations can be performed on it easily.
False
39
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
40
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
41
Identifiers can be a combination of
lowercase(a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore (_).
42
Writing variables in Python programming language is case sensitive.
True
43
is a finite set of instructions or logic, written in order, to accomplish a certain predefined task.
ALGORITHM
44
Binary tree is a simple data structure that allows adding and removing elements in a particular order.
False
45
There are five collection (arrays) data types in Python programming language.
False
46
We cannot use special symbols like !, @, #, $, % etc. in our identifier.
True
47
Integer, Float, Boolean, Char, They are known as
Primitive Data Structures.
48
Primitive data structure examples are integer, float, boolean, and stack.
False
49
Is this line of code correct? names_list = ["Aimee", "Cathy", "Katrina", "Martha", "Shola"]
True
50
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
51
Access Items List items are indexed and you can access them by referring to the index number.
true
52
are used to store large and connected data. Some example are Arrays, Linked list, Binary tree, Stack.
Complex Data Structures
53
“_______” 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”
54
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
55
Where does python and java are interpreted? . Most scripts are small programs with less than 100 lines.
Runtime
56
Pseudocode is a "text-based" detail design tool.
True
57
was conceived in the late 1980s, and its implementation was started in December 1989
Phyton programming language
58
is an artificial and i formal language. It is a text - based detail design tool
Pseudocode
59
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.
60
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
61
Identifier can be of any length.
True
62
The list() Constructor It is also possible to use the list() constructor when creating a new list.
true
63
Is this a best practice code / declaration? x = "Python programming”
False
64
Data Structures is about rendering data elements in terms of some relationship, for better organization and storage.
True