-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.json
4838 lines (4835 loc) · 127 KB
/
db.json
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"categories": [
{
"id": 1,
"name": "General Knowledge - Coding"
},
{
"id": 2,
"name": "Python"
},
{
"id": 3,
"name": "HTML"
},
{
"id": 4,
"name": "CSS"
},
{
"id": 5,
"name": "JavaScript"
},
{
"id": 6,
"name": "C++"
},
{
"id": 7,
"name": "Java"
},
{
"id": 8,
"name": "Riddles"
}
],
"questions": [
{
"id": 1,
"category_id": 1,
"question": "What does the acronym “HTML” stand for?",
"options": {
"a": "hypertext markup language",
"b": "hyperlink and text markup language",
"c": "high text markup language",
"d": "hypertext machine language"
},
"answer": "a"
},
{
"id": 2,
"category_id": 1,
"question": "Which programming language is known for its use in web development and is often used for both client-side and server-side scripting?",
"options": {
"a": "javascript",
"b": "java",
"c": "python",
"d": "c++"
},
"answer": "a"
},
{
"id": 3,
"category_id": 1,
"question": "What is the purpose of a “for loop” in programming?",
"options": {
"a": "to repeat a block of code a specific number of times",
"b": "to execute a block of code only if a condition is true",
"c": "to define a function",
"d": "to declare a variable"
},
"answer": "a"
},
{
"id": 4,
"category_id": 1,
"question": "What does the term “API” stand for?",
"options": {
"a": "application programming interface",
"b": "advanced programming interface",
"c": "application process integration",
"d": "automated program interface"
},
"answer": "a"
},
{
"id": 5,
"category_id": 1,
"question": "Which data structure follows the “Last In, First Out” (LIFO) principle?",
"options": {
"a": "queue",
"b": "stack",
"c": "heap",
"d": "linkedlist"
},
"answer": "b"
},
{
"id": 6,
"category_id": 1,
"question": "What is the difference between “compiler” and “interpreter”?",
"options": {
"a": "a compiler translates the entire program into machine code before execution, while an interpreter executes the code line by line",
"b": "an interpreter translates the entire program into machine code before execution, while a compiler executes the code line by line",
"c": "there is no difference; they are interchangeable terms",
"d": "a compiler and an interpreter perform the same function"
},
"answer": "a"
},
{
"id": 7,
"category_id": 1,
"question": "What is the purpose of version control systems like Git?",
"options": {
"a": "to manage changes to source code and collaborate with other developers",
"b": "to write and execute test cases",
"c": "to document software requirements",
"d": "to deploy software to production servers"
},
"answer": "a"
},
{
"id": 8,
"category_id": 1,
"question": "What is the time complexity of searching an element in a balanced binary search tree?",
"options": {
"a": "o(n)",
"b": "o(log n)",
"c": "o(n log n)",
"d": "o(1)"
},
"answer": "b"
},
{
"id": 9,
"category_id": 1,
"question": "What is the default sorting order for strings in most programming languages?",
"options": {
"a": "reverse alphabetical order",
"b": "random order",
"c": "descending order",
"d": "lexicographic (alphabetical) order"
},
"answer": "d"
},
{
"id": 10,
"category_id": 1,
"question": "What is the significance of the “main” function in C/C++ programs?",
"options": {
"a": "it serves as the entry point for program execution",
"b": "it defines the primary functionality of the program",
"c": "it declares global variables",
"d": "it includes header files"
},
"answer": "a"
},
{
"id": 11,
"category_id": 1,
"question": "What is the purpose of a “try-catch” block in exception handling?",
"options": {
"a": "to prevent the program from crashing",
"b": "to handle and recover from runtime errors",
"c": "to terminate the program",
"d": "to print debugging information"
},
"answer": "b"
},
{
"id": 12,
"category_id": 1,
"question": "Which sorting algorithm has an average time complexity of O(n log n)?",
"options": {
"a": "bubble sort",
"b": "insertion sort",
"c": "quick sort",
"d": "merge sort"
},
"answer": "d"
},
{
"id": 13,
"category_id": 1,
"question": "What is the difference between “static” and “dynamic” typing in programming languages?",
"options": {
"a": "static typing requires variable types to be declared at compile time, while dynamic typing allows type checking at runtime",
"b": "static typing allows variables to change type during runtime, while dynamic typing does not",
"c": "static typing does not require variable types to be declared at compile time, while dynamic typing does",
"d": "there is no difference; they are interchangeable terms"
},
"answer": "a"
},
{
"id": 14,
"category_id": 1,
"question": "What is the role of a “pointer” in C/C++?",
"options": {
"a": "to store memory addresses and allow manipulation of data indirectly",
"b": "to store integer values",
"c": "to define functions",
"d": "to allocate memory dynamically"
},
"answer": "a"
},
{
"id": 15,
"category_id": 1,
"question": "What is the purpose of the “this” keyword in Java?",
"options": {
"a": "to refer to the current instance of a class",
"b": "to create a new instance of a class",
"c": "to call superclass methods",
"d": "to throw exceptions"
},
"answer": "a"
},
{
"id": 16,
"category_id": 1,
"question": "Which data structure is used to implement a priority queue?",
"options": {
"a": "queue",
"b": "heap",
"c": "linkedlist",
"d": "stack"
},
"answer": "b"
},
{
"id": 17,
"category_id": 1,
"question": "What is the difference between “stack” and “heap” memory allocation?",
"options": {
"a": "stack memory is used for function call management, while heap memory is used for dynamic memory allocation",
"b": "stack memory is used for dynamic memory allocation, while heap memory is used for function call management",
"c": "there is no difference; they refer to the same memory region",
"d": "heap memory is used for function call management, while stack memory is used for dynamic memory allocation"
},
"answer": "a"
},
{
"id": 18,
"category_id": 1,
"question": "What is the maximum value that can be stored in a 32-bit signed integer?",
"options": {
"a": "2,147,483,647",
"b": "4,294,967,295",
"c": "1,000,000",
"d": "999,999"
},
"answer": "a"
},
{
"id": 19,
"category_id": 1,
"question": "What does the acronym “SQL” stand for?",
"options": {
"a": "structured query language",
"b": "sequential query language",
"c": "structured question language",
"d": "system query language"
},
"answer": "a"
},
{
"id": 20,
"category_id": 1,
"question": "What is the purpose of the “yield” keyword in Python?",
"options": {
"a": "it is used to terminate a loop",
"b": "it is used to yield control back to the calling function",
"c": "it is used in generator functions to produce a sequence of values lazily",
"d": "it is used to define class attributes"
},
"answer": "c"
},
{
"id": 21,
"category_id": 1,
"question": "What does the acronym “CSS” stand for?",
"options": {
"a": "cascading style sheets",
"b": "computer style sheets",
"c": "creative style sheets",
"d": "coded style sheets"
},
"answer": "a"
},
{
"id": 22,
"category_id": 1,
"question": "Which programming language is commonly used for data analysis and scientific computing?",
"options": {
"a": "python",
"b": "java",
"c": "c++",
"d": "javascript"
},
"answer": "a"
},
{
"id": 23,
"category_id": 1,
"question": "What is the purpose of an “if statement” in programming?",
"options": {
"a": "to conditionally execute a block of code based on a specified condition",
"b": "to execute a block of code repeatedly",
"c": "to define a function",
"d": "to declare a variable"
},
"answer": "a"
},
{
"id": 24,
"category_id": 1,
"question": "What is the difference between “static” and “dynamic” linking of libraries?",
"options": {
"a": "static linking includes library code directly in the executable, while dynamic linking loads libraries at runtime",
"b": "static linking loads libraries at runtime, while dynamic linking includes library code directly in the executable",
"c": "both static and dynamic linking load libraries at compile-time",
"d": "both static and dynamic linking load libraries at runtime"
},
"answer": "a"
},
{
"id": 25,
"category_id": 1,
"question": "What is the time complexity of searching an element in an unsorted array?",
"options": {
"a": "o(n)",
"b": "o(log n)",
"c": "o(n^2)",
"d": "o(1)"
},
"answer": "a"
},
{
"id": 26,
"category_id": 1,
"question": "What is the significance of the “void” keyword in C/C++?",
"options": {
"a": "it indicates that a function does not return a value",
"b": "it indicates that a function returns a void pointer",
"c": "it specifies the visibility of class members",
"d": "it specifies the scope of a variable"
},
"answer": "a"
},
{
"id": 27,
"category_id": 1,
"question": "Which data structure is used to implement a queue?",
"options": {
"a": "queue",
"b": "stack",
"c": "linkedlist",
"d": "array"
},
"answer": "a"
},
{
"id": 28,
"category_id": 1,
"question": "What is the purpose of a “hash table” (or “hash map”)?",
"options": {
"a": "to store key-value pairs with efficient lookup",
"b": "to sort elements in ascending order",
"c": "to remove duplicates from a list",
"d": "to perform arithmetic operations"
},
"answer": "a"
},
{
"id": 29,
"category_id": 1,
"question": "What is the default access modifier for class members in Java?",
"options": {
"a": "private",
"b": "protected",
"c": "public",
"d": "package-private (default)"
},
"answer": "d"
},
{
"id": 30,
"category_id": 1,
"question": "What is the difference between “stack memory” and “heap memory”?",
"options": {
"a": "stack memory is used for function call management, while heap memory is used for dynamic memory allocation",
"b": "heap memory is used for function call management, while stack memory is used for dynamic memory allocation",
"c": "both stack and heap memory are used interchangeably",
"d": "stack memory and heap memory are not related to memory management"
},
"answer": "a"
},
{
"id": 31,
"category_id": 1,
"question": "What is the maximum value that can be stored in a 64-bit signed integer?",
"options": {
"a": "9,223,372,036,854,775,807",
"b": "18,446,744,073,709,551,615",
"c": "4,294,967,295",
"d": "2,147,483,647"
},
"answer": "a"
},
{
"id": 32,
"category_id": 1,
"question": "What is the purpose of the “await” keyword in asynchronous programming (e.g., JavaScript)?",
"options": {
"a": "it waits for a promise to resolve before continuing execution",
"b": "it executes the next line of code immediately",
"c": "it waits for a function to return a value",
"d": "it specifies a delay in milliseconds before executing the next line of code"
},
"answer": "a"
},
{
"id": 33,
"category_id": 1,
"question": "Which sorting algorithm has the worst-case time complexity of o(n^2)?",
"options": {
"a": "merge sort",
"b": "quick sort",
"c": "bubble sort",
"d": "insertion sort"
},
"answer": "c"
},
{
"id": 34,
"category_id": 1,
"question": "What is the purpose of a “constructor” in object-oriented programming?",
"options": {
"a": "to initialize object properties when an instance is created",
"b": "to define static methods",
"c": "to perform arithmetic operations",
"d": "to allocate memory for objects"
},
"answer": "a"
},
{
"id": 35,
"category_id": 1,
"question": "What is the difference between “compile-time” and “runtime” errors?",
"options": {
"a": "compile-time errors occur during code compilation, while runtime errors occur during program execution",
"b": "compile-time errors occur during program execution, while runtime errors occur during code compilation",
"c": "there is no difference; they both occur during code compilation",
"d": "there is no difference; they both occur during program execution"
},
"answer": "a"
},
{
"id": 36,
"category_id": 1,
"question": "What is the purpose of the “super” keyword in Java?",
"options": {
"a": "it refers to the subclass (child class) of the current class",
"b": "it refers to the superclass (parent class) of the current class",
"c": "it refers to the base class of the current class",
"d": "it refers to the derived class of the current class"
},
"answer": "b"
},
{
"id": 37,
"category_id": 1,
"question": "Which data structure is used for implementing a symbol table (dictionary)?",
"options": {
"a": "array",
"b": "tree",
"c": "linkedlist",
"d": "hashtable"
},
"answer": "d"
},
{
"id": 38,
"category_id": 1,
"question": "What is the significance of the “volatile” keyword in Java?",
"options": {
"a": "it ensures that a variable’s value is read from memory each time it is accessed",
"b": "it specifies that a variable cannot be modified",
"c": "it indicates that a variable can only be accessed within a synchronized block",
"d": "it specifies the scope of a variable"
},
"answer": "a"
},
{
"id": 39,
"category_id": 1,
"question": "What is the difference between “deep copy” and “shallow copy” of objects?",
"options": {
"a": "a deep copy duplicates the entire object, including nested objects, while a shallow copy only copies references",
"b": "a deep copy only copies references, while a shallow copy duplicates the entire object",
"c": "a deep copy and a shallow copy are the same",
"d": "a deep copy and a shallow copy both duplicate the entire object"
},
"answer": "a"
},
{
"id": 40,
"category_id": 1,
"question": "What is the purpose of the “break” statement in loops?",
"options": {
"a": "to exit the loop prematurely",
"b": "to continue to the next iteration of the loop",
"c": "to break out of the current block of code",
"d": "to terminate the program"
},
"answer": "a"
},
{
"id": 41,
"category_id": 1,
"question": "What is the purpose of the “continue” statement in loops?",
"options": {
"a": "To exit the loop completely",
"b": "To restart the loop from the beginning",
"c": "To skip the current iteration and proceed to the next iteration of the loop",
"d": "To break out of the loop"
},
"answer": "c"
},
{
"id": 42,
"category_id": 1,
"question": "Which programming language is commonly used for game development?",
"options": {
"a": "Java",
"b": "Python",
"c": "C++",
"d": "JavaScript"
},
"answer": "c"
},
{
"id": 43,
"category_id": 1,
"question": "What does the acronym “URL” stand for?",
"options": {
"a": "Uniform Resource Locator",
"b": "Universal Resource Locator",
"c": "Unified Resource Locator",
"d": "Universal Reference Link"
},
"answer": "a"
},
{
"id": 44,
"category_id": 1,
"question": "What is the difference between “stack” and “queue” data structures?",
"options": {
"a": "A stack follows the First In, First Out (FIFO) principle, while a queue follows the Last In, First Out (LIFO) principle",
"b": "A stack and a queue both follow the First In, First Out (FIFO) principle",
"c": "A stack follows the Last In, First Out (LIFO) principle, while a queue follows the First In, First Out (FIFO) principle",
"d": "A stack and a queue both follow the Last In, First Out (LIFO) principle"
},
"answer": "c"
},
{
"id": 45,
"category_id": 1,
"question": "What is the purpose of the “finally” block in exception handling?",
"options": {
"a": "It contains code that executes only if an exception occurs",
"b": "It contains code that executes before an exception occurs",
"c": "It contains code that executes regardless of whether an exception occurs or not",
"d": "It contains code that executes after catching an exception"
},
"answer": "c"
},
{
"id": 46,
"category_id": 1,
"question": "Which sorting algorithm has the best average-case time complexity for a large number of elements?",
"options": {
"a": "Bubble Sort",
"b": "Selection Sort",
"c": "Insertion Sort",
"d": "Quick Sort"
},
"answer": "d"
},
{
"id": 47,
"category_id": 1,
"question": "What is the purpose of the “NaN” value in JavaScript?",
"options": {
"a": "It represents a null value",
"b": "It represents an undefined value",
"c": "It represents a negative infinity value",
"d": "It represents an undefined or unrepresentable value"
},
"answer": "d"
},
{
"id": 48,
"category_id": 1,
"question": "What is the difference between “static” and “instance” methods in Java?",
"options": {
"a": "Static methods belong to the class itself, while instance methods operate on specific instances of the class",
"b": "Static methods operate on specific instances of the class, while instance methods belong to the class itself",
"c": "Static methods are called without creating an instance of the class, while instance methods require an instance of the class",
"d": "Static methods are called using the 'this' keyword, while instance methods are called without it"
},
"answer": "a"
},
{
"id": 49,
"category_id": 1,
"question": "What is the purpose of the “git clone” command?",
"options": {
"a": "To create a copy of a local Git repository",
"b": "To create a copy of a remote Git repository on your local machine",
"c": "To delete a Git repository",
"d": "To merge branches in a Git repository"
},
"answer": "b"
},
{
"id": 50,
"category_id": 1,
"question": "Which data structure is used for implementing a symbol table with key-value pairs?",
"options": {
"a": "Array",
"b": "Tree",
"c": "LinkedList",
"d": "HashTable"
},
"answer": "d"
},
{
"id": 51,
"category_id": 2,
"question": "What will be the output of the following Python code?\n\n```\nfor i in range(1, 5):\n print(i, end=' ')\n if i % 2 == 0:\n break\n```\n",
"options": {
"a": "1 2",
"b": "1 2 3 4",
"c": "1 2 3",
"d": "1"
},
"answer": "a"
},
{
"id": 52,
"category_id": 2,
"question": "What is the output of the following Python code?\n\n```\nx = [i for i in range(5)]\nprint(x[0])",
"options": {
"a": "0",
"b": "1",
"c": "5",
"d": "Error"
},
"answer": "a"
},
{
"id": 53,
"category_id": 2,
"question": "What will be the output of the following Python code?\n\n```\nprint(2 * 3 ** 2 / 4)",
"options": {
"a": "9",
"b": "4.5",
"c": "6",
"d": "3"
},
"answer": "b"
},
{
"id": 54,
"category_id": 2,
"question": "What does the 'continue' statement do in Python?",
"options": {
"a": "Exits the loop",
"b": "Skips the current iteration and continues with the next",
"c": "Breaks the code",
"d": "Resumes the loop"
},
"answer": "b"
},
{
"id": 55,
"category_id": 2,
"question": "What is the correct way to check if a key exists in a dictionary in Python?",
"options": {
"a": "key in dict",
"b": "dict.has_key(key)",
"c": "dict[key] is not None",
"d": "Both a and c"
},
"answer": "d"
},
{
"id": 56,
"category_id": 2,
"question": "What is the output of the following Python code?\n\n```\nprint('Python'[1:-1])",
"options": {
"a": "Pytho",
"b": "Pyth",
"c": "ytho",
"d": "yth"
},
"answer": "c"
},
{
"id": 57,
"category_id": 2,
"question": "What will be the output of the following Python code?\n\n```\nnum = 5\nprint(num >> 1)",
"options": {
"a": "2",
"b": "2.5",
"c": "3",
"d": "5"
},
"answer": "a"
},
{
"id": 58,
"category_id": 2,
"question": "What does the 'pass' statement do in Python?",
"options": {
"a": "It skips the current iteration of a loop",
"b": "It exits the loop",
"c": "It does nothing",
"d": "It breaks the loop"
},
"answer": "c"
},
{
"id": 59,
"category_id": 2,
"question": "What is the output of the following Python code?\n\n```\nprint(2 * 3)",
"options": {
"a": "5",
"b": "6",
"c": "2.5",
"d": "3.0"
},
"answer": "b"
},
{
"id": 60,
"category_id": 2,
"question": "What will be the output of the following Python code?\n\n```\ni = 1\nwhile True:\n if i % 3 == 0:\n break\n print(i)\n i += 1",
"options": {
"a": "1 2 3",
"b": "error",
"c": "1 2",
"d": "none of the mentioned"
},
"answer": "c"
},
{
"id": 61,
"category_id": 2,
"question": "What will be the output of the following Python code?\ni = 1\nwhile True:\n if i % 3 == 0:\n break\n print(i)\n i += 1",
"options": {
"a": "1 2 3",
"b": "error",
"c": "1 2",
"d": "none of the mentioned"
},
"answer": "a"
},
{
"id": 62,
"category_id": 2,
"question": "Which of the following functions can help us find the version of Python that we are currently working on?",
"options": {
"a": "sys.version (1)",
"b": "sys.version (0)",
"c": "sys.version()",
"d": "sys.version"
},
"answer": "c"
},
{
"id": 63,
"category_id": 2,
"question": "Python supports the creation of anonymous functions at runtime, using a construct called _________.",
"options": {
"a": "pi",
"b": "anonymous",
"c": "lambda",
"d": "none of the mentioned"
},
"answer": "c"
},
{
"id": 64,
"category_id": 2,
"question": "What is the order of precedence in Python?",
"options": {
"a": "Exponential, Parentheses, Multiplication, Division, Addition, Subtraction",
"b": "Exponential, Parentheses, Division, Multiplication, Addition, Subtraction",
"c": "Parentheses, Exponential, Multiplication, Division, Subtraction, Addition",
"d": "Parentheses, Exponential, Multiplication, Division, Addition, Subtraction"
},
"answer": "a"
},
{
"id": 65,
"category_id": 2,
"question": "What will be the output of the following Python code snippet if x=1?\nx = 1\nx << 2",
"options": {
"a": "4",
"b": "2",
"c": "1",
"d": "8"
},
"answer": "a"
},
{
"id": 66,
"category_id": 2,
"question": "What does pip stand for in Python?",
"options": {
"a": "Pip Installs Python",
"b": "Pip Installs Packages",
"c": "Preferred Installer Program",
"d": "All of the mentioned"
},
"answer": "d"
},
{
"id": 67,
"category_id": 2,
"question": "Which of the following is true for variable names in Python?",
"options": {
"a": "Underscore and ampersand are the only two special characters allowed",
"b": "Unlimited length",
"c": "All private members must have leading and trailing underscores",
"d": "None of the mentioned"
},
"answer": "b"
},
{
"id": 68,
"category_id": 2,
"question": "What are the values of the following Python expressions?\n2 ** (3 ** 2)\n(2 ** 3) ** 2\n2 ** 3 ** 2",
"options": {
"a": "512, 64, 512",
"b": "512, 512, 512",
"c": "64, 512, 64",
"d": "64, 64, 64"
},
"answer": "a"
},
{
"id": 69,
"category_id": 2,
"question": "What is the purpose of the with statement in Python?",
"options": {
"a": "It simplifies exception handling and resource management (e.g., file handling) by automatically closing resources when they are no longer needed.",
"b": "It is used to define conditional statements.",
"c": "It is used to create a loop that executes a block of code as long as a specified condition is true.",
"d": "It is used to create a new instance of a class."
},
"answer": "a"
},
{
"id": 70,
"category_id": 2,
"question": "What does the __init__() method do in a Python class?",
"options": {
"a": "It is a destructor method that is automatically called when an object is destroyed.",
"b": "It is a method that is automatically called when an object is created, allowing the object to initialize its attributes.",
"c": "It is a method used to define the behavior of an object when it is printed.",
"d": "It is a method used to compare two objects for equality."
},
"answer": "b"
},
{
"id": 71,
"category_id": 2,
"question": "What is the difference between == and is in Python?",
"options": {
"a": "== compares the values of two objects, while is checks if two objects refer to the same memory location.",
"b": "== checks if two objects refer to the same memory location, while is compares the values of two objects.",
"c": "== and is are interchangeable and have the same behavior in Python.",
"d": "== and is are used for different types of comparisons in Python."
},
"answer": "a"
},
{
"id": 72,
"category_id": 2,
"question": "What does the enumerate() function do in Python?",
"options": {
"a": "It returns the sum of numbers in an iterable.",
"b": "It returns an iterator that produces pairs of index and value from an iterable.",
"c": "It removes duplicate elements from an iterable.",
"d": "It sorts the elements of an iterable in descending order."
},
"answer": "b"
},
{
"id": 73,
"category_id": 2,
"question": "What is the purpose of the map() function in Python?",
"options": {
"a": "It applies a given function to each item in an iterable and returns an iterator of the results.",
"b": "It creates a new list by concatenating multiple lists.",
"c": "It filters an iterable based on a specified condition.",
"d": "It sorts an iterable in ascending order."
},
"answer": "a"
},
{
"id": 74,
"category_id": 2,
"question": "What is the purpose of the `continue` statement in loops?",
"options": {
"a": "It skips the current iteration and proceeds to the next iteration of the loop.",
"b": "It terminates the loop immediately.",
"c": "It breaks the loop and exits the loop block.",
"d": "It reverses the direction of the loop."
},
"answer": "a"
},
{
"id": 75,
"category_id": 2,
"question": "Which programming language is commonly used for game development?",
"options": {
"a": "Python",
"b": "C++",
"c": "Java",
"d": "JavaScript"
},
"answer": "b"
},
{
"id": 76,
"category_id": 2,
"question": "What does the acronym “URL” stand for?",
"options": {
"a": "Universal Resource Language",
"b": "Uniform Resource Locator",
"c": "Unified Resource Link",
"d": "Unified Resource Locator"
},
"answer": "b"
},
{
"id": 77,
"category_id": 2,
"question": "What is the difference between “stack” and “queue” data structures?",
"options": {
"a": "A stack follows the Last In, First Out (LIFO) principle, while a queue follows the First In, First Out (FIFO) principle.",
"b": "A stack follows the First In, First Out (FIFO) principle, while a queue follows the Last In, First Out (LIFO) principle.",
"c": "A stack can only contain elements of the same data type, while a queue can contain elements of different data types.",
"d": "A stack has a fixed size, while a queue can grow and shrink dynamically."
},
"answer": "a"
},
{
"id": 78,
"category_id": 2,
"question": "What is the purpose of the `finally` block in exception handling?",
"options": {
"a": "It contains code that executes only if an exception occurs.",
"b": "It contains code that always executes, regardless of whether an exception occurs or not.",
"c": "It is used to raise an exception.",
"d": "It is used to handle specific types of exceptions."
},
"answer": "b"
},
{
"id": 79,
"category_id": 2,
"question": "Which sorting algorithm has the best average-case time complexity for a large number of elements?",
"options": {
"a": "Quick Sort",
"b": "Merge Sort",
"c": "Bubble Sort",
"d": "Insertion Sort"
},
"answer": "a"
},
{
"id": 80,
"category_id": 2,
"question": "What is the purpose of the `NaN` value in JavaScript?",
"options": {
"a": "It represents an undefined or unrepresentable value.",
"b": "It represents a numeric value.",
"c": "It represents a boolean value.",
"d": "It represents an array value."
},
"answer": "a"
},
{