4 |
5 | ---
6 |
7 | I post multiple choice Bootstrap questions
8 |
9 | From basic to advanced: test how well you know Bootstrap, refresh your knowledge a bit.
10 |
11 | Feel free to reach out to me! 😊
12 | Instagram || Twitter || linkedin
13 |
14 |
15 |
16 | ###### 1. What is Bootstrap 5?
17 |
18 | - A: A programming language
19 | - B: A front-end framework
20 | - C: A database management system
21 | - D: A server-side scripting language
22 |
23 | Answer
24 |
25 |
26 | #### Answer: B) A front-end framework
27 |
28 |
29 |
30 |
31 | ---
32 |
33 | ###### 2. Which CSS preprocessor is used in Bootstrap 5?
34 |
35 | - A: Sass
36 | - B: Less
37 | - C: Stylus
38 | - D: None
39 |
40 | Answer
41 |
42 |
43 | #### Answer: A) Sass
44 |
45 |
46 |
47 |
48 | ---
49 |
50 | ###### 3. What is the purpose of Bootstrap's grid system?
51 |
52 | - A: To manage server-side data
53 | - B: To create responsive layouts
54 | - C: To process form submissions
55 | - D: To handle database queries
56 |
57 | Answer
58 |
59 |
60 | #### Answer: B) To create responsive layouts
61 |
62 |
63 |
64 |
65 | ---
66 |
67 | ###### 4. Which class is used to create a responsive, fixed-width container in Bootstrap 5?
68 |
69 | - A: .container
70 | - B: .container-fluid
71 | - C: .container-sm
72 | - D: .container-md
73 |
74 | Answer
75 |
76 |
77 | #### Answer: A) .container
78 |
79 |
80 |
81 |
82 | ---
83 |
84 | ###### 5. Which utility class is used to hide an element visually in Bootstrap 5?
85 |
86 | - A: .hidden
87 | - B: .hide
88 | - C: .invisible
89 | - D: .visually-hidden
90 |
91 | Answer
92 |
93 |
94 | #### Answer: D) .visually-hidden
95 |
96 |
97 |
98 | ---
99 | ###### 6. Which of the following is NOT a component in Bootstrap 5?
100 |
101 | - A: Navbar
102 | - B: Card
103 | - C: Modal
104 | - D: Table
105 |
106 | Answer
107 |
146 |
147 |
148 | ---
149 |
150 | ###### 9. Which utility class is used to add spacing between elements in Bootstrap 5?
151 |
152 | - A: .margin
153 | - B: .padding
154 | - C: .space
155 | - D: .m
156 |
157 | Answer
158 |
159 |
160 | #### Answer: D) .m
161 |
162 |
163 |
164 |
165 | ---
166 |
167 | ###### 10. What is the recommended way to include Bootstrap 5 in your project?
168 |
169 | - A: Downloading the source files
170 | - B: Using a CDN
171 | - C: Installing via npm
172 | - D: All of the above
173 |
174 | Answer
175 |
176 |
177 | #### Answer: D) All of the above
178 |
179 |
180 |
181 |
182 | ---
183 |
184 | ###### 11. Which of the following is a new feature introduced in Bootstrap 5?
185 |
186 | - A: Glyphicons
187 | - B: Flexbox grid system
188 | - C: jQuery dependency
189 | - D: Panels
190 |
191 | Answer
192 |
193 |
194 | #### Answer: B) Flexbox grid system
195 |
196 |
197 |
198 |
199 | ---
200 |
201 | ###### 12. Which utility class is used to vertically center content within a parent element in Bootstrap 5?
202 |
203 | - A: .align-items-center
204 | - B: .v-align-center
205 | - C: .vertical-center
206 | - D: .center-vertical
207 |
208 | Answer
209 |
214 |
215 |
216 | ---
217 |
218 | ###### 13. What is the purpose of the "form-control" class in Bootstrap 5?
219 |
220 | - A: To style input elements
221 | - B: To control form submission
222 | - C: To validate form data
223 | - D: To handle form events
224 |
225 | Answer
226 |
227 |
228 | #### Answer: A) To style input elements
229 |
230 |
231 |
232 |
233 | ---
234 |
235 | ###### 14. Which of the following is NOT a valid color variant in Bootstrap 5?
236 |
237 | - A: primary
238 | - B: danger
239 | - C: alert
240 | - D: success
241 |
242 | Answer
243 |
244 |
245 | #### Answer: C) alert
246 |
247 |
248 |
249 |
250 | ---
251 |
252 | ###### 15. How can you create a responsive navbar in Bootstrap 5?
253 |
254 | - A: By adding the .navbar-toggle class
255 | - B: By using the .navbar-expand class
256 | - C: By using the .navbar-responsive class
257 | - D: By adding media queries in CSS
258 |
259 | Answer
260 |
261 |
262 | #### Answer: B) By using the .navbar-expand class
263 |
264 |
265 |
266 |
267 | ---
268 |
269 | ###### 16. Which class is used to create a dropdown menu in Bootstrap 5?
270 |
271 | - A: .dropdown-menu
272 | - B: .dropdown-toggle
273 | - C: .dropdown-item
274 | - D: .dropdown
275 |
276 | Answer
277 |
282 |
283 |
284 | ---
285 |
286 | ###### 17. What is the purpose of the "badge" component in Bootstrap 5?
287 |
288 | - A: To display notifications or counts
289 | - B: To create buttons
290 | - C: To style text inputs
291 | - D: To handle form validation
292 |
293 | Answer
294 |
295 |
296 | #### Answer: A) To display notifications or counts
297 |
298 |
299 |
300 |
301 | ---
302 |
303 | ###### 18. Which class is used to create a responsive carousel in Bootstrap 5?
304 |
305 | - A: .carousel
306 | - B: .carousel-item
307 | - C: .carousel-control
308 | - D: .carousel-inner
309 |
310 | Answer
311 |
312 |
313 | #### Answer: A) .carousel
314 |
315 |
316 |
317 |
318 | ---
319 |
320 | ###### 19. Which utility class is used to add shadows to elements in Bootstrap 5?
321 |
322 | - A: .shadow
323 | - B: .box-shadow
324 | - C: .shadow-sm
325 | - D: .shadows
326 |
327 | Answer
328 |
333 |
334 |
335 | ---
336 |
337 | ###### 20. How can you align text to the center horizontally in Bootstrap 5?
338 |
339 | - A: By using the .text-center class
340 | - B: By using the .align-center class
341 | - C: By using the .center-text class
342 | - D: By adding inline CSS
343 |
344 | Answer
345 |
346 |
347 | #### Answer: A) By using the .text-center class
348 |
349 |
350 |
351 |
352 | ---
353 |
354 | ###### 21. Which of the following is a feature of Bootstrap 5's grid system?
355 |
356 | - A: Fixed-width columns
357 | - B: Support for nested grids
358 | - C: Float-based layout
359 | - D: Limited breakpoints
360 |
361 | Answer
362 |
363 |
364 | #### Answer: B) Support for nested grids
365 |
366 |
367 |
368 |
369 | ---
370 |
371 | ###### 22. What is the purpose of the "toast" component in Bootstrap 5?
372 |
373 | - A: To display pop-up notifications
374 | - B: To create breadcrumbs
375 | - C: To style text inputs
376 | - D: To handle form submissions
377 |
378 | Answer
379 |
380 |
381 | #### Answer: A) To display pop-up notifications
382 |
383 |
384 |
385 |
386 | ---
387 |
388 | ###### 23. Which class is used to create a responsive embed in Bootstrap 5?
389 |
390 | - A: .embed
391 | - B: .responsive-embed
392 | - C: .embed-responsive
393 | - D: .responsive
394 |
395 | Answer
396 |
401 |
402 |
403 | ---
404 |
405 | ###### 24. How can you add spacing between columns in Bootstrap 5's grid system?
406 |
407 | - A: By using the .col-space class
408 | - B: By adding margin or padding to individual columns
409 | - C: By applying the .column-spacing utility class
410 | - D: By using the .col-gap class
411 |
412 | Answer
413 |
414 |
415 | #### Answer: B) By adding margin or padding to individual columns
416 |
417 |
418 |
419 |
420 | ---
421 |
422 | ###### 25. Which of the following is NOT a valid breakpoint size in Bootstrap 5?
423 |
424 | - A: xs
425 | - B: sm
426 | - C: md
427 | - D: lg
428 | - E: xl
429 |
430 | Answer
431 |
432 |
433 | #### Answer: E) xl
434 |
435 |
436 |
437 |
438 | ---
439 |
440 | ###### 26. What is the purpose of the "accordion" component in Bootstrap 5?
441 |
442 | - A: To display a list of options
443 | - B: To create a collapsible content panel
444 | - C: To style buttons
445 | - D: To handle form validation
446 |
447 | Answer
448 |
449 |
450 | #### Answer: B) To create a collapsible content panel
451 |
452 |
453 |
454 |
455 | ---
456 |
457 | ###### 27. Which class is used to create a vertical navigation menu in Bootstrap 5?
458 |
459 | - A: .nav
460 | - B: .nav-menu
461 | - C: .vertical-nav
462 | - D: .nav-vertical
463 |
464 | Answer
465 |
470 |
471 |
472 | ---
473 |
474 | ###### 28. How can you create a responsive image in Bootstrap 5?
475 |
476 | - A: By using the .img-fluid class
477 | - B: By adding inline CSS
478 | - C: By using JavaScript
479 | - D: By applying the .responsive-image class
480 |
481 | Answer
482 |
483 |
484 | #### Answer: A) By using the .img-fluid class
485 |
486 |
487 |
488 |
489 | ---
490 |
491 | ###### 29. Which utility class is used to change the background color of an element in Bootstrap 5?
492 |
493 | - A: .bg-color
494 | - B: .background-color
495 | - C: .bg
496 | - D: .bg-change
497 |
498 | Answer
499 |
500 |
501 | #### Answer: C) .bg
502 |
503 |
504 |
505 |
506 | ---
507 |
508 | ###### 30. What is the purpose of the "breadcrumb" component in Bootstrap 5?
509 |
510 | - A: To display hierarchical navigation links
511 | - B: To style form elements
512 | - C: To handle form submissions
513 | - D: To create pop-up notifications
514 |
515 | Answer
516 |
517 |
518 | #### Answer: A) To display hierarchical navigation links
519 |
520 |
521 |
522 |
523 | ---
524 |
525 | ###### 31. Which class is used to create a responsive container that stretches to the full width of the viewport in Bootstrap 5?
526 |
527 | - A: .container-fluid
528 | - B: .container
529 | - C: .container-xl
530 | - D: .container-lg
531 |
532 | Answer
533 |
538 |
539 |
540 | ---
541 |
542 | ###### 32. What is the purpose of the "navbar-toggler" class in Bootstrap 5?
543 |
544 | - A: To toggle the visibility of the navbar
545 | - B: To style navigation links
546 | - C: To control form submission
547 | - D: To add animations to the navbar
548 |
549 | Answer
550 |
551 |
552 | #### Answer: A) To toggle the visibility of the navbar
553 |
554 |
555 |
556 |
557 | ---
558 |
559 | ###### 33. Which class is used to create a responsive form layout in Bootstrap 5?
560 |
561 | - A: .form-horizontal
562 | - B: .form-inline
563 | - C: .form-vertical
564 | - D: .form-responsive
565 |
566 | Answer
567 |
572 |
573 |
574 | ---
575 |
576 | ###### 34. How can you create a responsive card layout in Bootstrap 5?
577 |
578 | - A: By using the .card-group class
579 | - B: By applying the .card-responsive class
580 | - C: By using media queries
581 | - D: By adding the .responsive-card class
582 |
583 | Answer
584 |
585 |
586 | #### Answer: A) By using the .card-group class
587 |
588 |
589 |
590 |
591 | ---
592 |
593 | ###### 35. What is the purpose of the "collapse" component in Bootstrap 5?
594 |
595 | - A: To collapse elements vertically
596 | - B: To create collapsible navigation menus
597 | - C: To style text inputs
598 | - D: To handle form validation
599 |
600 | Answer
601 |
602 |
603 | #### Answer: A) To collapse elements vertically
604 |
605 |
606 |
607 |
608 | ---
609 |
610 | ###### 36. Which class is used to create a horizontal form layout in Bootstrap 5?
611 |
612 | - A: .form-horizontal
613 | - B: .form-inline
614 | - C: .form-vertical
615 | - D: .form-horizontal-layout
616 |
617 | Answer
618 |
623 |
624 |
625 | ---
626 |
627 | ###### 37. How can you add a border to an element in Bootstrap 5?
628 |
629 | - A: By using the .border class
630 | - B: By adding inline CSS
631 | - C: By using JavaScript
632 | - D: By applying the .bordered class
633 |
634 | Answer
635 |
636 |
637 | #### Answer: A) By using the .border class
638 |
639 |
640 |
641 |
642 | ---
643 |
644 | ###### 38. What is the purpose of the "modal" component in Bootstrap 5?
645 |
646 | - A: To create responsive images
647 | - B: To display hierarchical navigation links
648 | - C: To handle form submissions
649 | - D: To create pop-up dialogs
650 |
651 | Answer
652 |
657 |
658 |
659 | ---
660 |
661 | ###### 39. What is the purpose of the "spinner" component in Bootstrap 5?
662 |
663 | - A: To display loading indicators
664 | - B: To style form elements
665 | - C: To create pop-up notifications
666 | - D: To handle form validation
667 |
668 | Answer
669 |
670 |
671 | #### Answer: A) To display loading indicators
672 |
673 |
674 |
675 |
676 | ---
677 |
678 | ###### 40. How can you create a responsive navigation bar in Bootstrap 5?
679 |
680 | - A: By using the .navbar-expand class
681 | - B: By adding the .responsive-navbar class
682 | - C: By applying media queries in CSS
683 | - D: By using the .navbar-responsive class
684 |
685 | Answer
686 |
687 |
688 | #### Answer: A) By using the .navbar-expand class
689 |
690 |
691 |
692 |
693 | ---
694 |
695 | ###### 41. Which class is used to create a responsive container that adjusts its width based on the viewport size in Bootstrap 5?
696 |
697 | - A: .container-fluid
698 | - B: .container
699 | - C: .container-sm
700 | - D: .container-lg
701 |
702 | Answer
703 |
708 |
709 |
710 | ---
711 |
712 | ###### 42. What is the purpose of the "pagination" component in Bootstrap 5?
713 |
714 | - A: To create collapsible content panels
715 | - B: To display a series of links to pages
716 | - C: To handle form submissions
717 | - D: To style buttons
718 |
719 | Answer
720 |
721 |
722 | #### Answer: B) To display a series of links to pages
723 |
724 |
725 |
726 |
727 | ---
728 |
729 | ###### 43. Which class is used to create a responsive alert box in Bootstrap 5?
730 |
731 | - A: .alert-box
732 | - B: .alert-responsive
733 | - C: .alert-dismissible
734 | - D: .alert
735 |
736 | Answer
737 |
738 |
739 | #### Answer: D) .alert
740 |
741 |
742 |
743 |
744 | ---
745 |
746 | ###### 44. What is the purpose of the "badge" component in Bootstrap 5?
747 |
748 | - A: To display pop-up notifications
749 | - B: To style text inputs
750 | - C: To create hierarchical navigation links
751 | - D: To display counts or labels
752 |
753 | Answer
754 |
755 |
756 | #### Answer: D) To display counts or labels
757 |
758 |
759 |
760 |
761 | ---
762 |
763 | ###### 45. How can you create a responsive carousel in Bootstrap 5?
764 |
765 | - A: By using the .carousel-item class
766 | - B: By adding media queries in CSS
767 | - C: By applying the .carousel-responsive class
768 | - D: By using the .carousel class
769 |
770 | Answer
771 |
772 |
773 | #### Answer: D) By using the .carousel class
774 |
775 |
776 |
777 |
778 | ---
779 |
780 | ###### 46. Which class is used to create a responsive grid layout in Bootstrap 5?
781 |
782 | - A: .row
783 | - B: .grid
784 | - C: .grid-row
785 | - D: .responsive-grid
786 |
787 | Answer
788 |
789 |
790 | #### Answer: A) .row
791 |
792 |
793 |
794 |
795 | ---
796 |
797 | ###### 47. What is the purpose of the "tooltip" component in Bootstrap 5?
798 |
799 | - A: To display additional information on hover
800 | - B: To create collapsible content panels
801 | - C: To style form elements
802 | - D: To handle form validation
803 |
804 | Answer
805 |
806 |
807 | #### Answer: A) To display additional information on hover
808 |
809 |
810 |
811 |
812 | ---
813 |
814 | ###### 48. Which class is used to create a responsive image gallery in Bootstrap 5?
815 |
816 | - A: .gallery
817 | - B: .image-gallery
818 | - C: .responsive-gallery
819 | - D: .img-fluid
820 |
821 | Answer
822 |
827 |
828 |
829 | ---
830 |
831 | ###### 49. What is the purpose of the "jumbotron" component in Bootstrap 5?
832 |
833 | - A: To create a responsive container
834 | - B: To display important content prominently
835 | - C: To style form inputs
836 | - D: To handle form submissions
837 |
838 | Answer
839 |
840 |
841 | #### Answer: B) To display important content prominently
842 |
843 |
844 |
845 |
846 | ---
847 |
848 | ###### 50. Which utility class is used to create spacing between elements inside a container in Bootstrap 5?
849 |
850 | - A: .spacing
851 | - B: .space
852 | - C: .margins
853 | - D: .paddings
854 |
855 | Answer
856 |
857 |
858 | #### Answer: B) .space
859 |
860 |
861 |
862 |
863 | ---
864 |
865 | ###### 51. What is the purpose of the "breadcrumb" component in Bootstrap 5?
866 |
867 | - A: To display hierarchical navigation links
868 | - B: To style buttons
869 | - C: To create collapsible content panels
870 | - D: To handle form submissions
871 |
872 | Answer
873 |
874 |
875 | #### Answer: A) To display hierarchical navigation links
876 |
877 |
878 |
879 |
880 | ---
881 |
882 | ###### 52. Which class is used to create a responsive table in Bootstrap 5?
883 |
884 | - A: .table-responsive
885 | - B: .responsive-table
886 | - C: .table-fluid
887 | - D: .responsive
888 |
889 | Answer
890 |
895 |
896 |
897 | ---
898 |
899 | ###### 53. What is the purpose of the "card" component in Bootstrap 5?
900 |
901 | - A: To create a responsive container
902 | - B: To display important content prominently
903 | - C: To handle form submissions
904 | - D: To style form inputs
905 |
906 | Answer
907 |
908 |
909 | #### Answer: B) To display important content prominently
910 |
911 |
912 |
913 |
914 | ---
915 |
916 | ###### 54. Which class is used to create a responsive navbar in Bootstrap 5?
917 |
918 | - A: .navbar-expand
919 | - B: .responsive-navbar
920 | - C: .navbar-toggle
921 | - D: .navbar-collapse
922 |
923 | Answer
924 |
929 |
930 |
931 | ---
932 |
933 | ###### 55. What is the purpose of the "dropdown" component in Bootstrap 5?
934 |
935 | - A: To create a responsive container
936 | - B: To handle form submissions
937 | - C: To display a list of options
938 | - D: To style navigation links
939 |
940 | Answer
941 |
942 |
943 | #### Answer: C) To display a list of options
944 |
945 |
946 |
947 |
948 | ---
949 |
950 | ###### 56. Which class is used to create a responsive form layout in Bootstrap 5?
951 |
952 | - A: .form-horizontal
953 | - B: .form-inline
954 | - C: .form-responsive
955 | - D: .form-layout
956 |
957 | Answer
958 |
963 |
964 |
965 | ---
966 |
967 | ###### 57. What is the purpose of the "spinner" component in Bootstrap 5?
968 |
969 | - A: To display loading indicators
970 | - B: To style buttons
971 | - C: To handle form validation
972 | - D: To create pop-up notifications
973 |
974 | Answer
975 |
976 |
977 | #### Answer: A) To display loading indicators
978 |
979 |
980 |
981 |
982 | ---
983 |
984 | ###### 58. Which class is used to create a responsive grid layout in Bootstrap 5?
985 |
986 | - A: .grid
987 | - B: .row
988 | - C: .container
989 | - D: .col
990 |
991 | Answer
992 |
993 |
994 | #### Answer: B) .row
995 |
996 |
997 |
998 |
999 | ---
1000 |
1001 | ###### 59. What is the purpose of the "navbar" component in Bootstrap 5?
1002 |
1003 | - A: To display notifications or counts
1004 | - B: To create a collapsible content panel
1005 | - C: To create a responsive navigation bar
1006 | - D: To style buttons
1007 |
1008 | Answer
1009 |
1010 |
1011 | #### Answer: C) To create a responsive navigation bar
1012 |
1013 |
1014 |
1015 |
1016 | ---
1017 |
1018 | ###### 60. What is the purpose of the "collapse" component in Bootstrap 5?
1019 |
1020 | - A: To display a series of links to pages
1021 | - B: To collapse elements vertically
1022 | - C: To handle form submissions
1023 | - D: To style text inputs
1024 |
1025 | Answer
1026 |
1027 |
1028 | #### Answer: B) To collapse elements vertically
1029 |
1030 |
1031 |
1032 |
1033 | ---
1034 |
1035 | ###### 61. Which class is used to create a responsive form layout in Bootstrap 5?
1036 |
1037 | - A: .form-horizontal
1038 | - B: .form-inline
1039 | - C: .form-responsive
1040 | - D: .form
1041 |
1042 | Answer
1043 |
1048 |
1049 |
1050 | ---
1051 |
1052 | ###### 62. Which class is used to create a responsive container that stretches to the full width of the viewport in Bootstrap 5?
1053 |
1054 | - A: .container-fluid
1055 | - B: .container
1056 | - C: .container-lg
1057 | - D: .container-sm
1058 |
1059 | Answer
1060 |
1235 |
1236 |
1237 | ---
1238 |
1239 | ###### 73. What is the purpose of the "list-group" component in Bootstrap 5?
1240 |
1241 | - A: To display a series of links to pages
1242 | - B: To create collapsible content panels
1243 | - C: To style input elements
1244 | - D: To handle form validation
1245 |
1246 | Answer
1247 |
1248 |
1249 | #### Answer: A) To display a series of links to pages
1250 |
1251 |
1252 |
1253 |
1254 | ---
1255 |
1256 | ###### 74. Which class is used to create a responsive grid layout with equal-width columns in Bootstrap 5?
1257 |
1258 | - A: .col
1259 | - B: .col-auto
1260 | - C: .col-xx
1261 | - D: .col-md
1262 |
1263 | Answer
1264 |
1265 |
1266 | #### Answer: A) .col
1267 |
1268 |
1269 |
1270 |
1271 | ---
1272 |
1273 | ###### 75 What is the purpose of the "badge" component in Bootstrap 5?
1274 |
1275 | - A: To display counts or labels
1276 | - B: To create a responsive container
1277 | - C: To handle form submissions
1278 | - D: To style buttons
1279 |
1280 | Answer
1281 |
1282 |
1283 | #### Answer: A) To display counts or labels
1284 |
1285 |
1286 |
1287 |
1288 | ---
1289 |
1290 | ###### 76. Which class is used to create a responsive navigation menu in Bootstrap 5?
1291 |
1292 | - A: .navbar-nav
1293 | - B: .nav-menu
1294 | - C: .nav-links
1295 | - D: .nav
1296 |
1297 | Answer
1298 |
1299 |
1300 | #### Answer: D) .nav
1301 |
1302 |
1303 |
1304 |
1305 | ---
1306 |
1307 | ###### 77. What is the purpose of the "dropdown" component in Bootstrap 5?
1308 |
1309 | - A: To handle form submissions
1310 | - B: To create a responsive container
1311 | - C: To display a list of options
1312 | - D: To style navigation links
1313 |
1314 | Answer
1315 |
1316 |
1317 | #### Answer: C) To display a list of options
1318 |
1319 |
1320 |
1321 |
1322 | ---
1323 |
1324 | ###### 78. Which class is used to create a responsive modal in Bootstrap 5?
1325 |
1326 | - A: .modal
1327 | - B: .modal-responsive
1328 | - C: .modal-dialog
1329 | - D: .modal-content
1330 |
1331 | Answer
1332 |
1371 |
1372 |
1373 | ---
1374 |
1375 | ###### 81. What is the purpose of the "jumbotron" component in Bootstrap 5?
1376 |
1377 | - A: To create a responsive container
1378 | - B: To display important content prominently
1379 | - C: To handle form submissions
1380 | - D: To style form inputs
1381 |
1382 | Answer
1383 |
1384 |
1385 | #### Answer: B) To display important content prominently
1386 |
1387 |
1388 |
1389 |
1390 | ---
1391 |
1392 | ###### 82. Which class is used to create a responsive grid layout with columns that automatically adjust their width based on the content in Bootstrap 5?
1393 |
1394 | - A: .col-auto
1395 | - B: .col-fluid
1396 | - C: .col-responsive
1397 | - D: .col-adaptive
1398 |
1399 | Answer
1400 |
1473 |
1474 |
1475 | ---
1476 |
1477 | ###### 87. Which class is used to create a responsive container that adjusts its width based on the viewport size, with a fixed maximum width, in Bootstrap 5?
1478 |
1479 | - A: .container-fluid
1480 | - B: .container
1481 | - C: .container-lg
1482 | - D: .container-max
1483 |
1484 | Answer
1485 |
1490 |
1491 |
1492 | ---
1493 |
1494 | ###### 88. What is the purpose of the "breadcrumb" component in Bootstrap 5?
1495 |
1496 | - A: To display a series of links to pages
1497 | - B: To create a collapsible content panel
1498 | - C: To handle form submissions
1499 | - D: To style buttons
1500 |
1501 | Answer
1502 |
1503 |
1504 | #### Answer: A) To display a series of links to pages
1505 |
1506 |
1507 |
1508 |
1509 | ---
1510 |
1511 | ###### 89. Which class is used to create a responsive grid layout with columns that automatically wrap at breakpoints in Bootstrap 5?
1512 |
1513 | - A: .row
1514 | - B: .col
1515 | - C: .grid
1516 | - D: .col-auto
1517 |
1518 | Answer
1519 |
1520 |
1521 | #### Answer: A) .row
1522 |
1523 |
1524 |
1525 |
1526 | ---
1527 |
1528 | ###### 1. Which class is used to create a responsive grid layout with columns that stack vertically on smaller devices in Bootstrap 5?
1529 |
1530 | - A: .col-auto
1531 | - B: .col-stack
1532 | - C: .col-sm
1533 | - D: .col-md
1534 |
1535 | #### Answer: C) .col-sm
1536 |
1537 | ###### 1. What is the purpose of the "pagination" component in Bootstrap 5?
1538 |
1539 | - A: To display a series of links to pages
1540 | - B: To create a collapsible content panel
1541 | - C: To handle form submissions
1542 | - D: To style buttons
1543 |
1544 | #### Answer: A) To display a series of links to pages
1545 |
1546 | ###### 1. Which class is used to create a responsive card layout where all cards have the same width and height in Bootstrap 5?
1547 |
1548 | - A: .card-deck
1549 | - B: .card-group
1550 | - C: .card-equal
1551 | - D: .card-stack
1552 |
1553 | #### Answer: A) .card-deck
1554 |
1555 | ###### 1. Which class is used to create a responsive navigation menu with pills in Bootstrap 5?
1556 |
1557 | - A: .nav-pills
1558 | - B: .nav-menu
1559 | - C: .nav-tabs
1560 | - D: .navbar-nav
1561 |
1562 | #### Answer: A) .nav-pills
1563 |
1564 | ###### 1. Which class is used to create a responsive list group with flush borders in Bootstrap 5?
1565 |
1566 | - A: .list-group-flush
1567 | - B: .list-group-borderless
1568 | - C: .list-group-no-border
1569 | - D: .list-group-clear
1570 |
1571 | #### Answer: A) .list-group-flush
1572 |
1573 | ###### 1. Which class is used to create a responsive form layout with inline elements in Bootstrap 5?
1574 |
1575 | - A: .form-inline
1576 | - B: .form-horizontal
1577 | - C: .form-grid
1578 | - D: .form-row
1579 |
1580 | #### Answer: A) .form-inline
1581 |
1582 | ###### 1. What is the purpose of the "breadcrumb" component in Bootstrap 5?
1583 |
1584 | - A: To display a series of links to pages
1585 | - B: To create a collapsible content panel
1586 | - C: To handle form submissions
1587 | - D: To style buttons
1588 |
1589 | #### Answer: A) To display a series of links to pages
1590 |
1591 | ###### 1. Which class is used to create a responsive grid layout with columns that automatically adjust their width based on the content in Bootstrap 5?
1592 |
1593 | - A: .col
1594 | - B: .col-auto
1595 | - C: .col-xx
1596 | - D: .col-md
1597 |
1598 | #### Answer: B) .col-auto
1599 |
--------------------------------------------------------------------------------
/CSS MCQ/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
CSS Questions
4 |
5 | ---
6 |
7 | I post multiple choice CSS questions
8 |
9 | From basic to advance- D: test how well you know CSS, refresh your knowledge a bit.
10 |
11 | Feel free to reach out to me! 😊
12 | Instagram || Twitter || linkedin
13 |
14 |
25 |
26 | #### Answer: A) Cascading Style Sheets
27 |
28 | Explanation:
29 |
30 | The full form of the CSS is Cascading Style Sheets. Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
31 |
32 |
33 |
34 |
35 | ---
36 |
37 | ###### 2. What CSS describes?
38 |
39 | - A: CSS describes how calculation perform on button click.
40 | - B: CSS describes how HTML elements are to be displayed on screen, paper, or in other media
41 | - C: Both A. and B.
42 | - D: None of the above
43 |
44 | Answer
45 |
46 |
47 | #### Answer: B) CSS describes how HTML elements are to be displayed on screen, paper, or in other media
48 |
49 | Explanation:
50 |
51 | CSS describes how HTML elements are to be displayed on screen, paper, or in other media.
52 |
53 |
54 |
55 |
56 | ---
57 |
58 | ###### 3. What is the correct syntax for referring an external CSS?
59 |
60 | - A: ``
61 | - B: ``
62 | - C: `
107 | - B: …
108 | - C: …
109 | - D: Both A. and B.
110 |
111 | #### Answer: A) ``
112 |
113 | Explanation:
114 |
115 | Internal styles are defined within the `
358 |
359 |
360 |
361 |
362 |
363 |
364 |