ADCA EXAM -Python Important objectives
1. Python is easy to learn and use, interactive and open-source computer
programming language
2. Python is an interpreter-based language
3. Comment in python begins with # symbol
4. Python allows to develop GUI application, Web application and scripts
5. Python works in two modes. These are interactive mode and scripting
mode.
6. The name of identifier must begin with an alphabet
7. Python is case sensitive language
8. Converting a data type to another data type is called casting
9. String can be defined by using single/ double or triple quotes
10. Input() function is used to accept input from user
11. Print() is used to display any value or message
12. Python IDLE is basic editor and interpreter of Python language
13. In interactive mode python prompt will be >>>
14. Machine language program/ Object program computer can directly
execute.
15. A program written by programmer and stored as a text file is called
source code
16. Comment is used in a program for documentation purpose
17. Int () function coverts input to integer data type
18. Float () function coverts input to float data type
19. For () statement is used to create a loop
20. While () statement is used to create a loop
21. If () statement is used to write conditions in a program
22. Loop within another loop is called nested loop
23. A number which has two factors only is called prime number
24. List is a container data type; it stores set of values as a unit
25. Union is also a container data type to store set of unique values only
26. Len () function returns the length of a string, list, set
27. Dictionary data type stores data in two columns these are key and
value
28. Append () function is used to add new value at the end of list
29. Pop() function deletes a value from list/ tuple
30. Sum() functions is used to find sum of the values present in a list
31. Max () function is used to find greatest value in a list
32. Min() function is used to find smallest value in a list
33. Tkinter is a package which allows GUI app development
34. A file can be opened in read, write or append modes
35. Graphical representation of the logic to solve any problem is called
flow chart
36. Narrative representation of the logic to solve any problem is called
algorithm
37. Algorithm is the logic to solve any problem written in English
38. When algorithm is translated to instructions of any programming
language then it becomes a program
39. Programs written in assembly language are translated to machine
language using Assembler
40. Programs written in High level language or 4th generation language are
translated to machine language using compiler or interpreter
41. Python programs are translated to machine language using Interpreter
42. A sequence of instructions, in a computer language, to solve a problem
ant to produce desired result known as; Program
43. Compiler or interpreter can identify only syntax errors
44. A program can contain three types of errors these are, syntax error,
logical error and run time error
45. Division zero is an example of run time error
46. Opcode is used in machine language to tell what has to be done
47. Assembler, compiler and interpreter are examples of language
processors(translators)
48. Checking about the accuracy of program is called testing
49. Errors present in a program are called bugs
50. Finding errors of program and removing those errors is called
debugging
51. Machine language is recognized by computer without any translator
52. Compiler is a translator which translates whole program at a time.
53. Interpreter is used to translate a HLL program to machine language
line by line
54. Machine language is difficult to learn and use, difficult to debug and
machine dependent
55. An assembly language program runs faster than HLL program [True]
56. It is easy to correct or modify Machine language program [False]
57. An assembly language program contains more instructions as
compared to a high-level language program [False]
58. Set of instructions written in HLL is called statement [False]
59. High level language programs are machine independent [True]
60. Python is a machine level language [False]
61. Algorithm if written in computer language then such set of instructions
is called a program
62. HLLs are 4GLs are machine independent
63. Errors of program are called bug
64. The process of removing bugs is known as debugging
65. A compiler program runs faster than interpreter-based program.
66. A program written in mnemonics is called Assembly language program
67. Those errors which occur is a program due to wrong syntax are called
syntax errors
68. Those errors which occur in a program due to wrong logic of
programmer are caller logical errors
69. Those errors which are detected at the time of execution of program
are called run time errors
70. A prime number has only two factors
71. Smallest unit of a python program is called token
72. Type() function is used to know the data type of a variable.
73. << is called left shift operator
74. >> is called right shift operator
75. Shifting a value to one place left is equal to multiplying the number by
2
76. Shifting a value to one place right is equal to dividing the number by 2
77. FLOSS stands for Fee Libre Open-source software
78. Set of characters in called string
79. \n to move cursor to next line
80. \t to move cursor 6 spaces or 0.5-inch right
81. x=x+2 can be written as x+=2
82. x=x-3 can be written as x-=3
83. print (2+5) and print(‘2+5’) will produce same output [False]
84. if n=7, m=2 then print (n/m) will produce 3.5 [Ture]
85. if n=10, m=2 then print (n%m) will produce 0
86. if n=7, m=2 then print (n//m) will produce 3
87. Python is a HLL computer programming language
88. Python programming language was developed by Guido Van Rsossum
in 1994.
89. Python programming language being used by YouTube, Google, Yahoo,
NASA etc.
90. IDLE stands for integrated development environment
91. Python can word in interactive and scripting modes
92. Smallest unit of a python program is called token
93. The name of a variable, constant, class, object or function is called
identifier
94. Punctuator are the symbols which are used in python program
95. \n represents new line
96. \t represents tab character
97. Python is opensource programming language
98. Python is used for scripting, GUI programming, Web application
development etc.
99. The name of variable must begin with an alphabet
100. Converting a data type to another is called type casting
101. In python programming language # symbol is used to write comment
102. Literals can be defined as a data which is given in a variable or
constant
103. IDLE is basic editor and interpreter environment
104. >>> is default Python prompt of the interactive shell
105. Object code is the program that the computer can directly execute
106. Python is called FLOSS (Free Libre Open-Source Software)
107. Set of characters is called string
108. Python does not use increment / decrement operators (++/--)
109. << is called left shift operator [ multiply by 2]
110. >> is called right shift operator [divide by 2]
111. Type() function is used to verify the data type of an object