InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Explain media objects in bootstrap 4? |
|
Answer» Bootstrap 4 gives an effortless way to align the images and the videos along with the CONTENT. We can use media objects to SHOW tweets, comments on blogs and many more things. To have a media object the container needs to have a class named .media and for the content of the media, a child container needs to be created with a class attached .media-body To make sure sufficient spacing is given used padding and other tags as needed. We can have more than ONE media objects nested with each other. You can add another .media class in a container with a class of .media-body. Alignment to the right can be DONE by adding an image after .media-body container. For Bottom, top or middle alignment we can PROVIDE utilities of flex such as align-self* |
|
| 2. |
How many colors in Bootstrap 4? |
|
Answer» There are two types of Bootstrap 4 colors:-
Text Colours:- Bootstrap 4 has few contextual classes which can be used to give "MEANING through colours". The classes for the text colours are: .text-muted, .text-success, .text-info, .text-primary, .text-danger, .text-secondary, .text-dark, .text-WHITE, .text-BODY (DEFAULT body colour/often black) and .text-light. Contextual classes can be used on links, and this will ADD a darker hover color. 50% opacity for black or white text can be added with the classes .text-black-50 or .text-white-50. Background Colours:- The background colours classes are .bg-primary, .bg-warning, .bg-info, .bg-success, .bg-danger, .bg-secondary, .bg-dark & .bg-light. Since the background colours do not set the colour of the text therefore the developer have to use them with the class .text-* |
|
| 3. |
Explain Bootstrap 4 Positions. |
|
Answer» Bootstrap 4 Positions rapidly configure the POSITION of the elements. The positioning classes are .position-static, .position-relative, .position-absolute, .position-fixed, .position-STICKY. There are three positions in Bootstrap 4:-
|
|
| 4. |
Explain Bootstrap 4 Tables? |
|
Answer» A Bootstrap 4 table has very light padding and has a horizontal divider. The class .table gives primary styling to a table.
1 .table-primary—it is blue in color, and it SHOWS a significant action. 2 .table-success-it is green in color, and it shows a successful or a positive action 3 .table-warning -it is orange in color and it shows a warning and needs attention.
This is one of the most asked Bootstrap 4 interview questions. |
|
| 5. |
List the different image shapes & Corners used in Bootstrap 4? |
|
Answer» Bootstrap has the following image shapes and Corners:-
Rounded Corners:- The class .rounded add round corners to the image . syntax:- <img alt="Statue of unity" class="rounded" src="Statueofunity.jpg"> Circle :- The class .rounded-circle turns the shape of the image to a circle. Syntax:- <img alt="Statue of unity" class="rounded-circle" src="Statueofunity.jpg"> Thumbnail:- The class .img-thumbnail turns the shape of the image to a thumbnail, i.e. bordered image. Syntax:- <img alt="Statue of unity" class="img-thumbnail" src="Statueofunity.jpg"> Aligning Images:- An image is aligned to the left with the class .float-left and an image is aligned to the right with the class .float-right Syntax:- <img class="float-left" src="Statueofunity .jpg"> <img class="float-right" src="Statueofunity .jpg"> Centered Image:- The classes .mx-AUTO (margin:auto) & .d-block (display:block) ALIGN the image at the center. Syntax:- <img class="mx-auto d-block" src="Statueofunity .jpg"> Responsive Images:- The responsive images ADJUST themselves dynamically according to the size of the screen. The class .img-fluid is added to the <img> tag to create a responsive images. The class .img-fluid gives max-width: 100%; & height: auto; to the image that has to be responsive. Syntax:- <img alt="Pune" class="img-fluid" src="img_Pune.jpg"> |
|
| 6. |
What new in Bootstrap 4? |
|
Answer» Bootstrap 4 is a significant change from its earlier versions. Following are some of the necessary changes:
Point to be noted: Go through this Q&A very thoroughly as this is one of the essential bootstrap 4 interview questions. |
|
| 7. |
Can you explain the basic Structure of a Bootstrap 4 Grid? |
|
Answer» The Bootstrap 4 grid System is developed with flexbox has a limit of 12 columns across the entire page. If a developer does not want to use the 12 columns individually then, it can be merged to create a full column. The grid system in Bootstrap 4 is responsive and also depending upon the screen size the columns are re-arranged dynamically. The UI developer has to make sure that the sum MUST be 12 or less than 12. The bootstrap 4 grid system has the following five classes:-
The above classes can be united to create a flexible and dynamic layout. ExampleBasic Structure:- <!-- Control the width of the column, and how they should look on different devices --> <div class="ROW"> <div class="col-*-*"></div> <div class="col-*-*"></div> </div> <div class="row"> <div class="col-*-*"></div> <div class="col-*-*"></div> <div class="col-*-*"></div> </div> <!-- Or let Bootstrap automatically manages the layout --> <div class="row"> <div class="col"></div> <div class="col"></div> <div class="col"></div> </div> |
|
| 8. |
Why we use Bootstrap 4? |
Answer»
This is a primary bootstrap 4 interview question. |
|
| 9. |
Can you list the difference between Bootstrap 3 and Bootstrap 4? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 10. |
Bootstrap 4 released on which date? |
|
Answer» The alpha 1 VERSION of the Bootstrap 4 got released on 19th of AUGUST 2015, and the BETA 1 version of the Bootstrap 4 got released on 10th of August 2017 |
|
| 11. |
What is Bootstrap 4? |
|
Answer» Bootstrap 4 is the current version of Bootstrap. Bootstrap 4 is basically an HTML, JavaScript and CSS FRAMEWORK. Bootstrap 4 is popular among the developer across the globe for building mobile-first and ALSO responsive sites with a Bootstrap content DISTRIBUTION network and the TEMPLATE starter page. Bootstrap 4 is FREE to download and use. |
|