One-mark & Two-mark Answers for Unsolved Sample Papers Sample Paper-4 21. num = [] for x in range(1, 21): PART - I num.append(x) 1. (a) Constructors print(“The list of numbers from 1 to 20 =”, 2. (d) Namespaces num) 3. (b) Selection sort for index, i in enumerate(num): 4. (c) comma(,) if(i % 3 == 0) 5. (a) alternative del num[index] 6. (c) Lambda print(“The list after deleting numbers”, 7. (d) : num) 8. (d) Assignment 9. (c) + O utput: 10. (b) relation The list of numbers from 1 to 20 = [1,2,3,4... 11. (c) DataBase Management System 20] 12. (c) 2008 The list after deleting numbers[1, 2, 4, 5, 7, 13. (a) 2 8, 10, 11, 13, 14, 16, 17, 19, 20] 14. (d) html 22. A list in Python is known as a “sequence data 15. (d) : type” like strings. It is an ordered collection of values enclosed within square brackets [ ]. PART - II Each value of a list is called as element. 16. Input, Output, Finiteness, Definiteness, 23. • On live data, it is being continuously Effectiveness, Correctness, Simplicity, updated and added, maintaining the Unambiguous, Feasibility, Portable and consistency of data can become a challenge. Independent. But DBMS handles it by itself. • Data Consistency means that data values 17. • Backslash - \\\\ • New line - \\n are the same at all instances of a database • Tab - \\t • Single quotes - \\’ 24. Database is a repository collection of related data organized in a way that data can be easily 18. It will change the global variable value accessed, managed and updated. Database outside the function also. can be a software or hardware based, with 19. (i) User-defined Functions one sole purpose of storing data. (ii) Built-in Functions (iii) Lambda Functions (iv) Recursion Functions 20. String is a data type in python, which is used to handle array of characters. String is a sequence of Unicode characters that may be a combination of letters, numbers, or special symbols enclosed within single, double or even triple quotes. Example: ‘Welcome to learning Python’ “Welcome to learning Python” ‘‘‘ “Welcome to learning Python” ’’’ G-72
Search
Read the Text Version
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151