Unlimited Online Free Software Download! Get 100% Free Hurry up!
Q. 1   What is the 16-bit compiler allowable range for integer constants ?
  • Correct Answer: D. -32768 to 32767

Q. 2   What is required in each C program ?
  • Correct Answer: A. The program must have at least one function.

Q. 3   Which of the following comment is correct when a macro definition includes arguments ?
  • Correct Answer: A. The opening parenthesis should immediately follow the macro name.

Q. 4   What is a lint ?
  • Correct Answer: C. Analyzing tool

Q. 5   What is the output of this statement ''printf(''%d'', (a++))'' ?
  • Correct Answer: B. The current value of a

Q. 6   Why is a macro used in place of a function ?
  • Correct Answer: A. It reduces execution time.

Q. 7   In the C language, the constant is defined _______.
  • Correct Answer: C. Anywhere, but starting on a new line.

Q. 8   A pointer is a memory address. Suppose the pointer variable has p address 1000, and that p is declared to have type int*, and an int is 4 bytes long. What address is represented by expression p + 2 ?
  • Correct Answer: D. 1008

Q. 9   Which one of the following is a loop construct that will always be executed once ?
  • Correct Answer: D. do while

Q. 10   How many characters can a string hold when declared as follows ? char name[20]:
  • Correct Answer: C. 20 char

Q. 11   Directives are translated by the
  • Correct Answer: A. Pre-processor

Q. 12   How many bytes does **int = D** use ?
  • Correct Answer: C. 2 or 4 bytes

Q. 13   What is the maximum number of characters that can be held in the string variable char address line [40] ?
  • Correct Answer: B. 39 characters

Q. 14   Which one is the correct description for the variable balance declared below ? int ** balance;
  • Correct Answer: B. Balance is a pointer to a pointer to an integer

Q. 15   Which of the following statement is not true ?
  • Correct Answer: B. A pointer must point to a data item on the heap (free store).

Q. 16   Let p1 be an integer pointer with a current value of 2000. What is the content of p1 after the expression p1++ has been evaluated ?
  • Correct Answer: C. 2004 value

Q. 17   Let p1 and p2 be integer pointers. Which one is a syntactically wrong statement ?
  • Correct Answer: A. p1 = p1 + p2;

Q. 18   Suppose that cPtr is a character pointer, and its current content is 300. What will be the new value in cPtr after the following assignment ? cPtr = cPtr + 5;
  • Correct Answer: A. value 305

Q. 19   Which is valid expression in C language ?
  • Correct Answer: B. int my_num = 100000;

Q. 20   Who is the father of C language ?
  • Correct Answer: C. Dennis Ritchie

Q. 21   All keywords in C are in ____________
  • Correct Answer: A. LowerCase letters

Q. 22   Which of the following is true for variable names in C ?
  • Correct Answer: C. Variable names cannot start with a digit

Q. 23   Which of the following cannot be a variable name in C ?
  • Correct Answer: A. volatile

Q. 24   Which of the following declaration is not supported by C language ?
  • Correct Answer: A. String str;

Q. 25   Which keyword is used to prevent any changes in the variable within a C program ?
  • Correct Answer: C. const

Q. 26   What is the result of logical or relational expression in C ?
  • Correct Answer: B. 0 or 1

Q. 27   Where in C the order of precedence of operators do not exist ?
  • Correct Answer: D. None of the mentioned

Q. 28   What is an example of iteration in C ?
  • Correct Answer: D. all of the mentioned

Q. 29   Functions can return enumeration constants in C ?
  • Correct Answer: A. true

Q. 30   Functions in C Language are always _________
  • Correct Answer: B. External

Q. 31   Which of following is not accepted in C ?
  • Correct Answer: C. static static int a; //a static variable prefixed with static

Q. 32   Property which allows to produce different executable for different platforms in C is called ?
  • Correct Answer: C. Conditional compilation

Q. 33   What is #include ?
  • Correct Answer: A. Preprocessor directive

Q. 34   C preprocessors can have compiler specific features.
  • Correct Answer: A. True

Q. 35   The C-preprocessors are specified with _________ symbol.
  • Correct Answer: A. #

Q. 36   How many number of pointer (*) does C have against a pointer variable declaration ?
  • Correct Answer: D. No limits

Q. 37   Which of the following is not possible statically in C language ?
  • Correct Answer: A. Jagged Array

Q. 38   which of the following return-type cannot be used for a function in C ?
  • Correct Answer: D. none of the mentioned

Q. 39   When a C program is started, O.S environment is responsible for opening file and providing pointer for that file ?
  • Correct Answer: D. All of the mentioned

Q. 40   In C language, FILE is of which data type ?
  • Correct Answer: C. struct

Q. 41   What is the sizeof(char) in a 32-bit C compiler ?
  • Correct Answer: C. 1 Byte

Q. 42   scanf() is a predefined function in______header file.
  • Correct Answer: C. stdio. h

Q. 43   C Language develop at‌‌‌‌______?
  • Correct Answer: A. AT & T's Bell Laboratories of USA in 1972

Q. 44   C programs are convert into machine language with help of
  • Correct Answer: B. A compiler

Q. 45   C was primarily Developed as
  • Correct Answer: A. System programming language

Q. 46   Standard ANSI C recongnizes________number of keyboards ?
  • Correct Answer: B. 32 keywords

Q. 47   C Language is a successor to which language ?
  • Correct Answer: D. B Language

Q. 48   C is a which level language ?
  • Correct Answer: B. High Level

Q. 49   Low level language is ?
  • Correct Answer: D. Difficult to understand and readability is questionable.

Q. 50   High level language is a ?
  • Correct Answer: A. Human readable like language.

Q. 51   C is _______ type of programming language ?
  • Correct Answer: B. Procedural

Q. 52   Who invented C++ ?
  • Correct Answer: D. Bjarne Stroustrup

Q. 53   Which of the following is used for comments in C++ ?
  • Correct Answer: D. both // comment or /* comment */

Q. 54   Which of the following is not a type of Constructor in C++ ?
  • Correct Answer: B. Friend constructor

Q. 55   Which of the following type is provided by C++ but not C ?
  • Correct Answer: C. bool

Q. 56   Which of the following correctly declares an array in C++ ?
  • Correct Answer: B. int array[10];

Q. 57   What is Inheritance in C++ ?
  • Correct Answer: A. Deriving new classes from existing classes

Q. 58   What is meant by a polymorphism in C++ ?
  • Correct Answer: B. class having many forms

Q. 59   What is abstract class in C++ ?
  • Correct Answer: C. Class specifically used as a base class with atleast one pure virtual functions

Q. 60   Which of the following constructors are provided by the C++ compiler if not defined in a class ?
  • Correct Answer: C. Default constructor

Q. 61   The operator used for dereferencing or indirection is ____
  • Correct Answer: A. *

Q. 62   What will happen in the following C++ code snippet ?
1. int a = 100, b = 200;
2. int *p = &a, *q = &b;
3. p = q;
  • Correct Answer: B. p now points to b

Q. 63   Which operator is used to signify the namespace ?
  • Correct Answer: C. scope-resolution operator

Q. 64   What does a class in C++ holds ?
  • Correct Answer: C. both data & functions

Q. 65   Which other keywords are also used to declare the class?
  • Correct Answer: A. class

Q. 66   The data members and functions of a class in C++ are by default ____________
  • Correct Answer: B. private

Q. 67   Constructors are used to ____________
  • Correct Answer: A. initialize the objects

Q. 68   Which of these following members are not accessed by using direct member access operator ?
  • Correct Answer: D. both private & protected

Q. 69   How many objects can present in a single class ?
  • Correct Answer: D. as many as possible

Q. 70   Which special character is used to mark the end of class ?
  • Correct Answer: A. ;

Q. 71   Which of the following operators can't be overloaded ?
  • Correct Answer: A. ::

Q. 72   Which keyword is used to represent a friend function ?
  • Correct Answer: A. friend

Q. 73   What is a friend function in C++ ?
  • Correct Answer: A. A function which can access all the private, protected and public members of a class

Q. 74   What is a function template ?
  • Correct Answer: A. creating a function without having to specify the exact type

Q. 75   What is the syntax of class template ?
  • Correct Answer: A. template <paramaters> class declaration

Q. 76   What is meant by multiple inheritance ?
  • Correct Answer: C. Deriving a derived class from more than one base class

Q. 77   Which of the following is the correct syntax to print the message in C++ language ?
  • Correct Answer: A. cout <<"Hello world!";

Q. 78   Which of the following is the address operator ?
  • Correct Answer: C. &

Q. 79   For inserting a new line in C++ program, which one of the following statements can be used ?
  • Correct Answer: A. \n

Q. 80   Which of the following refers to characteristics of an array ?
  • Correct Answer: A. An array is a set of similar data items

Q. 81   If we stored five elements or data items in an array, what will be the index address or the index number of the array's last data item ?
  • Correct Answer: B. 4 number

Q. 82   Wrapping data and its related functionality into a single entity is known as _____________
  • Correct Answer: B. Encapsulation

Q. 83   How many types of polymorphism are there in C++ ?
  • Correct Answer: B. 2 types

Q. 84   Which of the following is not a type of inheritance ?
  • Correct Answer: B. Distributive

Q. 85   Which of the following is called insertion operator ?
  • Correct Answer: A. <<

Q. 86   Which of the following is called extraction operator ?
  • Correct Answer: B. >>

Q. 87   What is the size of a boolean variable in C++ ?
  • Correct Answer: A. 1 bit

Q. 88   Which of the following is C++ equivalent for scanf() ?
  • Correct Answer: A. cin

Q. 89   Which of the following is the scope resolution operator ?
  • Correct Answer: C. ::

Q. 90   What is std in C++ ?
  • Correct Answer: B. std is a standard namespace in C++

Q. 91   Which of the following accesses the seventh element stored in array ?
  • Correct Answer: A. array[6];

Q. 92   What do vectors represent ?
  • Correct Answer: B. Dynamic arrays

Q. 93   Where does the execution of c++ program starts ?
  • Correct Answer: B. main() function

Q. 94   Which of the following correctly declares an array ?
  • Correct Answer: A. int array[10];

Q. 95   Which data type is used to represent the absence of parameters ?
  • Correct Answer: B. void

Q. 96   The value 132.54 can be represented using which data type ?
  • Correct Answer: A. float

Q. 97   What is syntax of defining a constructor of class A ?
  • Correct Answer: C. A()

Q. 98   There are ___ levels of heading in HTML
  • Correct Answer: D. Six

Q. 99   The following html tag is used to display the content as a moving text
  • Correct Answer:

Q. 100   html comment should be enclosed between
  • Correct Answer: A. <!-- and -->

Q. 101   _____ tag is used before beginning of the paragraph text
  • Correct Answer: C. <p>

Q. 102   Example of picture editing software is
  • Correct Answer: B. photoshop

Q. 103   html document have a extension ______
  • Correct Answer: B. .htm or .html

Q. 104   The _____ element can be used to identify your html file to the outside world
  • Correct Answer: D. html

Q. 105   Which of the following is true
  • Correct Answer: C. Unordered list starts with <UL> and ends with </UL>

Q. 106   Which of the following is true?
  • Correct Answer: A. BR tag is used to have a blank line

Q. 107   to get the ordered list we use
  • Correct Answer: C. <OL>

Q. 108   HTML is the method where ordinary text can be converted into
  • Correct Answer: D. None of the above

Q. 109   WWW stands for
  • Correct Answer: C. world wide web

Q. 110   The CSS property used to control the element’s font-size is__________
  • Correct Answer: D. None

Q. 111   The HTML attribute used to define the internal stylesheet is___________
  • Correct Answer: B. <style>

Q. 112   Which of the following CSS property is used to set the background image of an element?
  • Correct Answer: C. background-image

Q. 113   Which of the following is the correct syntax to display the hyperlinks without any underline?
  • Correct Answer: C. a {text-decoration : none;}

Q. 114   Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?
  • Correct Answer: C. p {background-color : yellow;}

Q. 115   Which of the following property is used as the shorthand property for the padding properties?
  • Correct Answer: C. padding

Q. 116   The CSS property used to make the text bold is___________
  • Correct Answer: B. font-weight : bold

Q. 117   The property in CSS used to change the background color of an element is_____________
  • Correct Answer: A. background-color

Q. 118   Which of the following is the correct syntax for referring the external style sheet?
  • Correct Answer: D. <link rel=“stylesheet” type=“text/css” href=“example.css”>

Q. 119   The HTML attribute used to define the inline styles is___________
  • Correct Answer: C. style

Q. 120   The CSS property used to draw a line around the elements outside the border?
  • Correct Answer: D. outline

Q. 121   Which of the following CSS property is used to specify the space between every letter inside an element?
  • Correct Answer: C. letter-spacing

Q. 122   The CSS property used to make the rounded borders, or rounded corners around an element is________
  • Correct Answer: A. border-radius

Q. 123   The CSS property used to specify the transparency of an element is____________
  • Correct Answer: D. opacity

Q. 124   Which of the following property is used as the shorthand property of margin properties?
  • Correct Answer: C. margin

Q. 125   The CSS property used to set the distance between the borders of the adjacent cells in the table is__________
  • Correct Answer: B. border-spacing

Q. 126   Are the negative values allowed in padding property?
  • Correct Answer: A. No

Q. 127   What are the valid values of font-style property?
  • Correct Answer: D. inherit, italic, normal, oblique

Q. 128   Which CSS property is used to specify uppercase and lowercase letters in a text?
  • Correct Answer: A. text-transform

Q. 129   In how many ways can CSS be added to HTML?
  • Correct Answer: C. Three

Q. 130   Which selector do we use to specify the rule for binding some particular unique element?
  • Correct Answer: D. id

Q. 131   Internal styles are written within the _____ element.
  • Correct Answer: A. <style>…</style>

Q. 132   HTML is what type of language ?
  • Correct Answer: B. Markup Language

Q. 133   Which HTML tag produces the biggest heading?
  • Correct Answer: D. <h1>

Q. 134   Which is correct?
  • Correct Answer: C. <b>Click Here</b>

Q. 135   To create a link to an anchor, you use the______property in A tag.
  • Correct Answer: D. Href

Q. 136   The page title is inside the____tag.
  • Correct Answer: B. Head

Q. 137   <UL>...</UL> tag is used to ________
  • Correct Answer: C. display the bulleted list

Q. 138   <TD>...</TD> tag is used to ________
  • Correct Answer:

Q. 139   Which tag is used to create body text in HTML?
  • Correct Answer: D. <BODY>

Q. 140   Which plugin is used to cycle through elements, like a slideshow?
  • Correct Answer: D. carousel

Q. 141   Which plugin is used to create a modal window?
  • Correct Answer: A. modal

Q. 142   Which plugin is used to create a tooltip?
  • Correct Answer: B. tooltip

Q. 143   Bootstrap’s grid system allows up to
  • Correct Answer: B. 12 columns across the page

Q. 144   Which class should be used to indicate a button group?
  • Correct Answer: B. btn-group

Q. 145   Which of the following bootstrap styles of buttons can be used to make the size of the button small?
  • Correct Answer: B. .btn-sm

Q. 146   How many Container class are there in Bootstrap?
  • Correct Answer: B. Two

Q. 147   The _________ class is used to right-align navigation bar buttons.
  • Correct Answer: C. .navbar-right

Q. 148   Which class is used to add buttons inside the navigation bar?
  • Correct Answer: B. .navbar-btn

Q. 149   Bootstrap is developed by
  • Correct Answer: C. Mark Otto and Jacob Thornton

Q. 150   Which of the following bootstrap style is used to add standard links to .navbar?
  • Correct Answer: A. navbar-link

Q. 151   How do you insert a comment in a CSS file?
  • Correct Answer: B. /* this is a comment */

Q. 152   How do you change the left margin of an element?
  • Correct Answer: C. margin-left:

Q. 153   Interpret this statement: <strong>Michelle</strong>
  • Correct Answer: C. It will print out Michelle in bold font

Q. 154   What is the tag for an inline frame?
  • Correct Answer: A. Iframe

Q. 155   Which of the following class in bootstrap is used to create a big box for calling extra attention?
  • Correct Answer: D. .jumbotron

Q. 156   Which of the following class in Bootstrap is used to create a basic list group?
  • Correct Answer: C. .list-group

Q. 157   Which of the following class in Bootstrap is used to create basic pagination?
  • Correct Answer: D. .pagination

Q. 158   Which of the following class in Bootstrap is used to create a badge?
  • Correct Answer: B. .badge

Q. 159   The class in Bootstrap which is used to specify the collapsible elements is -
  • Correct Answer: A. .collapse

Q. 160   Which of the following class in Bootstrap is used for creating the large size modals?
  • Correct Answer: D. .modal-lg

Q. 161   Which of the following is correct method to add a success button?
  • Correct Answer: A. <button class = "btn btn-success"> success </button>

Q. 162   Which of the following class in Bootstrap is used to create a label?
  • Correct Answer: A. .label

Q. 163   Which of the following is correct about the Bootstrap Grid system?
  • Correct Answer: C. Both (a) and (b)

Q. 164   Which of the following class in Bootstrap is used to style a table with borders surrounding every element?
  • Correct Answer: B. .table-bordered

Q. 165   Which of the following class in Bootstrap is used to style a table with a light gray background to rows when the user moves the cursor over them?
  • Correct Answer: D. .table-hover

Q. 166   In the below code snippet, in what order will the margins be added ? p { margin: 25px 50px 75px 100px; }
  • Correct Answer: A. Top, Right, Bottom, Left,

Q. 167   Which of the following class in Bootstrap is used to provide a responsive fixed width container ?
  • Correct Answer: C. .container

Q. 168   How can we select an element with a specific ID in CSS ?
  • Correct Answer: A. #

Q. 169   What type of CSS is generally recommended for designing large web pages ?
  • Correct Answer: C. External

Q. 170   What type of CSS is the following code snippet ? <h1 style = "color:blue;" >A Blue Heading </h1>
  • Correct Answer: A. Inline

Q. 171   How many columns are allowed in a bootstrap grid system ?
  • Correct Answer: B. 12 columns

Q. 172   Which HTML tag is used to declare internal CSS ?
  • Correct Answer: A. <style>

Q. 173   What are the attributes used to change the size of an image ?
  • Correct Answer: A. Width and height

Q. 174   We enclose HTML tags within ?
  • Correct Answer: A. < >

Q. 175   Which of the following tags doesn't require a closing tag ?
  • Correct Answer: C. Both the <hr> and the <br> tag

Q. 176   Which property is used to define the font of the element's text?
  • Correct Answer: B. font-family

Q. 177   Which is the correct inline CSS for p tag to define paragrap's text and background colors?
  • Correct Answer: D. <p style="color: red; background-color: yellow;">

Q. 178   What does the abbreviation HTML stand for?
  • Correct Answer: A. Hyper Text Markup Language.

Q. 179   What is the smallest header in HTML by default?
  • Correct Answer: D. h6

Q. 180   What are the types of lists available in HTML?
  • Correct Answer: A. Ordered, Unordered Lists.

Q. 181   HTML files are saved by default with the extension?
  • Correct Answer: A. .html

Q. 182   We enclose HTML tags within?
  • Correct Answer: B. <>

Q. 183   What is the effect of the tag?
  • Correct Answer: A. It converts the text within it to bold font.

Q. 184   Which of the following is correct about HTML?
  • Correct Answer: B. HTML uses tags defined within the language.

Q. 185   How to display preformatted text in HTML?
  • Correct Answer: C. <pre>

Q. 186   What is meant by an empty tag in HTML?
  • Correct Answer: B. An empty tag does not require a closing tag

Q. 187   Which attribute is used to provide a unique name to an HTML element?
  • Correct Answer: A. id

Q. 188   What is the function of the HTML style attribute?
  • Correct Answer: A. It is used to add styles to an HTML element.

Q. 189   Which of the following is the correct syntax for using the HTML style attribute?
  • Correct Answer: A. <tagname style "property: value;" >

Q. 190   Which HTML element is used to define description data?
  • Correct Answer: D. <dd>

Q. 191   Which of the following properties is used to change the font of text?
  • Correct Answer: A. font-family

Q. 192   How are quotations defined in HTML?
  • Correct Answer: C. <blockquote >

Q. 193   What tag is used to render an image on a webpage?
  • Correct Answer: A. img

Q. 194   Apart from <i> tag, which of the following tag is used to render a text in italics?
  • Correct Answer: B. <em>

Q. 195   Colors are defined in HTML using?
  • Correct Answer: D. All of the above

Q. 196   Which property is used to set colors in HTML?
  • Correct Answer: A. color

Q. 197   What are the types of unordered lists in HTML?
  • Correct Answer: A. Circle, square, disc.

Q. 198   Which property is used to set border colors in HTML?
  • Correct Answer: B. border

Q. 199   Which of the following things are necessary to create an HTML page?
  • Correct Answer: C. Both A and B

Q. 200   Which HTML tag is called the root element of an HTML document?
  • Correct Answer: A. <html>

Q. 201   How is black color represented in terms of RGB values?
  • Correct Answer: A. RGB(O, O, 0)

Q. 202   What does the Alpha value in RGBA represent?
  • Correct Answer: A. Opacity value for a color.

Q. 203   What does the Alpha value of 0.0 represent?
  • Correct Answer: B. Fully Transparent.

Q. 204   How to set a font for a whole page?
  • Correct Answer: B. <defaultfont>

Q. 205   Which function is used to open a file in C?
  • Correct Answer: B. fopen()

Q. 206   Which is the correct syntax to declare a file pointer in C?
  • Correct Answer: B. FILE *file_pointer;

Q. 207   Header files ___.
  • Correct Answer: D. All of these

Q. 208   The sqrt() function is used to calculate which value?
  • Correct Answer: C. Square root

Q. 209   A recursive function in C ___.
  • Correct Answer: A. Call itself again and again

Q. 210   Before using a pointer variable, it should be ___.
  • Correct Answer: C. Both A. and B.

Q. 211   A ___ can be assigned the address of any data type.
  • Correct Answer: C. Void pointer

Q. 212   Before using a pointer variable, it should be ___.
  • Correct Answer: C. Both A. and B.

Q. 213   Which of the following is the collection of different data types?
  • Correct Answer: A. structure

Q. 214   The size of a union is ___.
  • Correct Answer: C. Equal to size of largest data type

Q. 215   Which feature of OOPS described the reusability of code?
  • Correct Answer: D. Inheritance

Q. 216   A single program of OOPS contains _______ classes?
  • Correct Answer: D. Any number

Q. 217   Which operator from the following can be used to illustrate the feature of polymorphism?
  • Correct Answer: A. Overloading <<

Q. 218   Which header file is required by the C++ programming language to use the OOPS concept?
  • Correct Answer: D. We can easily use the OOPS concepts in c++ programs without using any header file

Q. 219   Which function best describe the concept of polymorphism in programming languages?
  • Correct Answer: B. Virtual function

Q. 220   Which of the following feature is also known as run-time binding or late binding?
  • Correct Answer: C. Dynamic binding

Q. 221   Which HTML tag is used to set up a Javascript–like client?
  • Correct Answer: A. <script>

Q. 222   What are the main components of the front end of any working website?
  • Correct Answer: A. HTML, CSS, Javascript.

Q. 223   What is the select tag used for?
  • Correct Answer: A. Creates a combo box.

Q. 224   The most basic part of any HTML page is?
  • Correct Answer: A. ASCII Text

Q. 225   What are those objects called which are used for storing data on the client provided by the HTML local storage?
  • Correct Answer: C. Both A and B

Q. 226   The default value of the BORDER attribute is?
  • Correct Answer: A. 1 pixel

Q. 227   What are some valid character sets available?
  • Correct Answer: D. All of the above

Q. 228   How many characters can be written in I KB?
  • Correct Answer: B. 1024

Q. 229   Which of the following are examples of block–level elements in HTML?
  • Correct Answer: D. All of the above

Q. 230   What are the properties of block-level elements?
  • Correct Answer: D. All of the above.

Q. 231   If a background image is smaller than the screen on which it is being displayed, what will occur on the webpage?
  • Correct Answer: B. The image will be repeated

Q. 232   Which property allows an image link to show a text label?
  • Correct Answer: A. alt

Q. 233   What is CSS stands for in Webdesign?
  • Correct Answer: A. Cascading Style Sheets

Q. 234   What CSS describes?
  • Correct Answer: B. CSS describes how HTML elements are to be displayed on screen, paper, or in other media

Q. 235   What is a CSS selector?
  • Correct Answer: D. A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of elements.

Q. 236   In a CSS file, there is a CSS rule for paragraphs tags — what does p can be called?
  • Correct Answer: A. Selector

Q. 237   Internal styles are written within the element.
  • Correct Answer: A. <style>...</style>

Q. 238   Inline styles are written within the attribute.
  • Correct Answer: A. style

Q. 239   CSS comments are placed within the
  • Correct Answer: B. /* and */

Q. 240   Can comments also span multiple lines?
  • Correct Answer: A. Yes

Q. 241   Which property is used to define the text color?
  • Correct Answer: B. color

Q. 242   Which property is used to define the background color?
  • Correct Answer: D. Both A. and C.

Q. 243   From the given options which is/are the valid way to represent a color?
  • Correct Answer: D. All of the above

Q. 244   Which property is used to define the font of the element is text?
  • Correct Answer: B. font-family

Q. 245   To make a text italic, which CSS property is used?
  • Correct Answer: C. font-style

Q. 246   Why font-weight property is used?
  • Correct Answer: A. Sets how thick or thin characters in text should be displayed.

Q. 247   What is/are the correct value(s) of font-weight property?
  • Correct Answer: C. normal, bold, bolder, lighter, initial, and inherit

Q. 248   What is the correct syntax of border property in CSS?
  • Correct Answer: A. border: border-width border-style border-color

Q. 249   Which of the following is the correct syntax to remove the underline on hyperlinks and visited hyperlinks?
  • Correct Answer: C. a {text-decoration : none;}, a:visited {text-decoration : none;}

Q. 250   Which CSS property is used to style the hyperlinks on hover (Mouse over)?
  • Correct Answer: D. a:hover

Q. 251   If you want to use a green dotted border around an image, which CSS property is used for that?
  • Correct Answer: D. Both A. and B.

Q. 252   Which CSS property and value is used to center an element?
  • Correct Answer: A. text-align:center

Q. 253   What are the valid values of text-align property?
  • Correct Answer: C. left, center, right, justify

Q. 254   What is the use of "text-align:justify" in CSS?
  • Correct Answer: A. Stretches the lines so that each line has equal width

Q. 255   Which CSS property is used to specify the indentation of the first line of a text?
  • Correct Answer: C. text-indent

Q. 256   Which CSS property is used to specify the space between the characters in a text?
  • Correct Answer: C. letter-spacing

Q. 257   Which CSS property is used to specify the space between lines?
  • Correct Answer: D. line-height

Q. 258   Which CSS property is used to specify the space between the words in a text?
  • Correct Answer: A. word-spacing

Q. 259   Which CSS property adds shadow to text?
  • Correct Answer: B. text-shadow

Q. 260   Which is the correct CSS statement to capitalize the first letter of each word?
  • Correct Answer: B. text-transform: capitalize

Q. 261   What are the valid values of text-transform property?
  • Correct Answer: A. uppercase, lowercase, and capitalize

Q. 262   What are the valid values of "text-decoration" property?
  • Correct Answer: A. overline, line-through, underline, and none

Q. 263   Which CSS property specifies how to align the last line of a text?
  • Correct Answer: D. text-align-last

Q. 264   Which CSS property sets the vertical alignment of an element?
  • Correct Answer: A. vertical-align

Q. 265   Which CSS property specifies the type of list item marker?
  • Correct Answer: B. list-style-type

Q. 266   Which is the correct CSS statement is used to remove the markers/bullets?
  • Correct Answer: D. list-style-type: none;

Q. 267   Which CSS property specifies an image as the list item marker?
  • Correct Answer: A. list-style-image

Q. 268   Which CSS property specifies if/how an element is displayed?
  • Correct Answer: C. display

Q. 269   HTML elements are positioned by default.
  • Correct Answer: A. static

Q. 270   What are the valid values for "position" property?
  • Correct Answer: D. static, relative, fixed, absolute, and sticky

Q. 271   Which CSS property specifies the opacity/transparency of an element?
  • Correct Answer: B. opacity

Q. 272   Which CSS function performs a calculation to be used as the property value?
  • Correct Answer: C. calc()

Q. 273   Which CSS function uses the largest value?
  • Correct Answer: D. max()

Q. 274   Which CSS function uses the smallest value?
  • Correct Answer: D. min()

Q. 275   What is CSS?
  • Correct Answer: D. All of the above

Q. 276   The <style> in Internal CSS refers to
  • Correct Answer: B. HTML tags

Q. 277   Can we link multiple stylesheets to a single page?
  • Correct Answer: A. Yes

Q. 278   The CSS property used to change text sizes?
  • Correct Answer: B. font-size

Q. 279   In this line of code, identify the selector
p {border: 2px solid blue;}
  • Correct Answer: A. p

Q. 280   How many color names does CSS supports?
  • Correct Answer: A. 140 names

Q. 281   The property is used in the positioning of the background image.
  • Correct Answer: B. background-position

Q. 282   what means 4 times the size of the current font.
  • Correct Answer: D. 4em

Q. 283   Amongst the following browsers, which browser supports almost all the CSS properties?
  • Correct Answer: C. Google Chrome

Q. 284   What is the CSS Entity for the character "#"?
  • Correct Answer: A. 0023

Q. 285   This selector selects all the elements where the parent is a
element.
  • Correct Answer: B. h > p

Q. 286   Which selector selects the markers of list items?
  • Correct Answer: A. ::marker

Q. 287   Which is the most widely used font in customizing web pages?
  • Correct Answer: C. Arial

Q. 288   Which of the following CSS properties are animatable?
  • Correct Answer: B. animation

Q. 289   We can give space between unit and value when assigning length values to CSS properties.
  • Correct Answer: B. False

Q. 290   Which of these units of length is supported by Chrome Version 1.0?
  • Correct Answer: C. px

Q. 291   Which line of code is a must to write to apply CSS Flexbox properties?
  • Correct Answer: A. display: flex;

Q. 292   The default value of justify-content property is
  • Correct Answer: A. flex-start

Q. 293   Which is the correct syntax for adding animation?
  • Correct Answer: B. animation: name duration timing-function

Q. 294   Which line of code specifies playing an animation with the same speed from beginning to the end?
  • Correct Answer: A. div {animation- timing function: linear;)

Q. 295   Which line of code represents a universal selector?
  • Correct Answer: A. *{border: 2px solid red;}

Q. 296   Which of the following properties specify the width of the borders?
  • Correct Answer: D. Both A and C

Q. 297   Is border-image property animatable?
  • Correct Answer: B. No

Q. 298   Which cursor property value indicates that the program is busy?
  • Correct Answer: D. wait

Q. 299   What does this line of code explain? p {display: flex;}
  • Correct Answer: D. All the elements are displayed as an inline flex container

Q. 300   The text-align property defines the alignment of text in an element.
  • Correct Answer: A. horizontal

Q. 301   Does the z-index property accept negative values?
  • Correct Answer: A. Yes

Q. 302   Which CSS property is not supported by the Firefox browser?
  • Correct Answer: D. viewport

Q. 303   Which one is a fallback font?
  • Correct Answer: C. Serif

Q. 304   Where do we store external stylesheets?
  • Correct Answer: A. CSS files

Q. 305   In the given line of code, identify the type of selector used. #Main {background-color: yellow;}
  • Correct Answer: B. CSS id selector

Q. 306   The Hex Code for the white color is
  • Correct Answer: A. #FFFFFF

Q. 307   In CSS, what does HSL stands for?
  • Correct Answer: C. hue, saturation, lightness

Q. 308   Among the following CSS properties, which property is not a shorthand property?
  • Correct Answer: C. display

Q. 309   In this line of code, what is the use of the alt attribute? it is red
  • Correct Answer: D. Both A. and B.

Q. 310   The CSS border property specifies the style, color, and of an element border.
  • Correct Answer: B. width

Q. 311   What does "padding: 50px 20px;" specifies?
  • Correct Answer: D. Both A. and B.

Q. 312   What is the default size for normal text, like paragraphs?
  • Correct Answer: D. 16 px

Q. 313   Which of the following CSS selectors are used to specify a group of elements?
  • Correct Answer: C. class

Q. 314   Which of the following has introduced text, list, box, margin, border, color, and background properties?
  • Correct Answer: C. css

Q. 315   Which of the following CSS framework is used to create a responsive design?
  • Correct Answer: D. bootstrap

Q. 316   Which of the following CSS property is used to make the text bold?
  • Correct Answer: B. font-weight: bold

Q. 317   What will be the output of following CSS code snippet?
hl {color: "greenn ; }
  • Correct Answer: A. nothings happen

Q. 318   Which of the following CSS style property is used to specify an italic text?
  • Correct Answer: C. font-style

Q. 319   What will be the output of following CSS code snippet?

h1 {color: red text-decoration: underline; font-style: italic;}
  • Correct Answer: B. only font-style: italic works

Q. 320   Which of the following are the CSS Extension Prefixes for Webkit?
  • Correct Answer: D. -webkit

Q. 321   Which of the following function defines a linear gradient as a CSS image?
  • Correct Answer: A. linear-gradient()

Q. 322   Which of the following is the correct way to apply CSS Styles?
  • Correct Answer: D. All of the above.

Q. 323   Which of the following CSS property sets the font size of text?
  • Correct Answer: A. font-size

Q. 324   Which of the following is not the property of the CSS box model?
  • Correct Answer: B. color

Q. 325   What will be the output of the following CSS code snippet?

span { border: 1px solid red; outline: green dotted thick; }
  • Correct Answer: C. All span elements will have a outer green dotted border and an inner red border

Q. 326   Which of the following CSS property sets the shadow for a box element?
  • Correct Answer: B. box-shadow

Q. 327   Which of the following CSS property is used to set the color of the text?
  • Correct Answer: D. color

Q. 328   Which of the following CSS Property controls how an element is positioned?
  • Correct Answer: B. position

Q. 329   Which of the following CSS property is used to specify table borders in CSS?
  • Correct Answer: C. border

Q. 330   Which CSS Property Sets A Background Image For An Element?
  • Correct Answer: B. Background - Image

Q. 331   What Should Be The Table Width, so That The Width Of A Table Adjust To The Current Width Of The Browser Window?
  • Correct Answer: B. 100%

Q. 332   When We Write <img src="img.png"> What "img.png" Inside Double Quote Implies?
  • Correct Answer: A. Value

Q. 333   The Default Value Of "position" Attribute Is
  • Correct Answer: D. Static

Q. 334   Who invented css?
  • Correct Answer: A. Hakon Wium Lie

Q. 335   CSS is written in which language?
  • Correct Answer: B. HTML

Q. 336   What is the latest version of css?
  • Correct Answer: C. css 3

Q. 337   how will you make all paragraph elements red in color?
  • Correct Answer: A. p {color: red;}

Q. 338   HTML document start and end with which tag pairs?
  • Correct Answer: C. <HTML> ... </HTML>

Q. 339   <TITLE> ... tag must be within _______
  • Correct Answer: C. Header

Q. 340   Text within ... <STRONG> tag is displayed as _____
  • Correct Answer: A. bold

Q. 341   Which tag is used to display the numbered list?
  • Correct Answer: A. <OL > ... </OL >

Q. 342   <SCRIPT> tag can be placed within____
  • Correct Answer: D. both A and B

Q. 343   using <P>tag will
  • Correct Answer: A. start a new paragraph

Q. 344   <TD > tag is used for ________
  • Correct Answer: B. Table Records and table data

Q. 345   Which HTML Tag will use to scroll a text in web page?
  • Correct Answer: A. < marquee> ... </marquee >

Q. 346   WWW stands for ______.
  • Correct Answer: C. World Wide Web

Q. 347   A homepage is __________.
  • Correct Answer: D. the first page of a website

Q. 348   ____is a document commonly written in Hyper Text Markup Language (HTML) that is accessible through the Internet or other network using an internet browser.
  • Correct Answer: B. Web page

Q. 349   A web page is located using a _____.
  • Correct Answer: B. Uniform Resource Locator

Q. 350   A piece of icon or image on a web page associated with another webpage is called____________.
  • Correct Answer: B. hyperlink

Q. 351   ________ is a collection of web pages.
  • Correct Answer: D. Web site

Q. 352   What is the correct HTML tag for inserting a line break?
  • Correct Answer: A. < br>

Q. 353   Webpage starts with which of the following tag?
  • Correct Answer: A. <html >

Q. 354   JPG sometimes called ________.
  • Correct Answer: A. JPEG

Q. 355   A webpage displays a picture. What tag was used to display that picture?
  • Correct Answer: C. img

Q. 356   < b>tag makes the enclosed text bold. What is other tag to make text bold?
  • Correct Answer: A. <strong >

Q. 357   Tags and text that are not directly displayed on the page are written in _ section.
  • Correct Answer: A. <head>

Q. 358   Which tag inserts a line horizontally on your web page?
  • Correct Answer: A. <hr>

Q. 359   What should be the first tag in any HTML document?
  • Correct Answer: A. <html>

Q. 360   Which tag allows you to add a row in a table?
  • Correct Answer: A. <tr> and </tr>

Q. 361   How can you make an e-mail link?
  • Correct Answer: C. <a href="mailto:xxx@yyy">

Q. 362   Choose the correct HTML tag to make a text italic
  • Correct Answer: A. <i>

Q. 363   To create a combo box (drop down box) which tag will you use?
  • Correct Answer: A. <select>

Q. 364   Which of the following is not a pair tag?
  • Correct Answer: D. <img>

Q. 365   To create HTML document you require.
  • Correct Answer: C. Just a notepad can be used

Q. 366   The special formatting codes in HTML document used to present content are
  • Correct Answer: A. tags

Q. 367   HTML documents are saved in
  • Correct Answer: C. ASCII text

Q. 368   Some tags enclose the text. Those tags are known as
  • Correct Answer: D. Pair tags

Q. 369   In HTML document the tags
  • Correct Answer: D. can be written in both uppercase or lowercase

Q. 370   Marquee is a tag in HTML to
  • Correct Answer: C. Display text with scrolling effect

Q. 371   To create a blank line in your web page
  • Correct Answer: C. insert < BR > tag

Q. 372   The way the browser displays the object can be modified by _____
  • Correct Answer: A. attributes

Q. 373   Which of the following HTML code is valid?
  • Correct Answer: D. None of the above.

Q. 374   Which of the following is an attribute related to font tag?
  • Correct Answer: D. All of the above

Q. 375   HTML supports
  • Correct Answer: D. both type of lists

Q. 376   What tag is used to list individual items of an ordered list?
  • Correct Answer: A. LI

Q. 377   Which attribute is used withimg tag to display the text if image could not load in browser?
  • Correct Answer: C. alt

Q. 378   Which attribute you’ll use with TD tag to merge two cells horizontally?
  • Correct Answer: C. colspan=2

Q. 379   Which of the following is correct about Bootstrap?
  • Correct Answer: D. All of the above.

Q. 380   Which of the following is correct about Bootstrap?
  • Correct Answer: D. All of the above

Q. 381   Which of the following is a part of Mobile First Strategy of Bootstrap?
  • Correct Answer: D. All of the above.

Q. 382   Which of the following is correct about Bootstrap Grid System?
  • Correct Answer:

Q. 383   Which of the following is correct about Bootstrap Grid System?
  • Correct Answer: D. All of the above.

Q. 384   Which of the following is correct about Bootstrap Media Query?
  • Correct Answer: A. It simply applies some CSS, based on certain conditions set forth. If those conditions are met, the style is applied.

Q. 385   Which of the following is correct about Bootstrap Media Query?
  • Correct Answer: C. Both of the above.

Q. 386   Which of the following is correct about Bootstrap Mobile First Strategy?
  • Correct Answer: D. All of the above.

Q. 387   Which of the following class styles a table as a nice basic table with just some light padding and horizontal dividers?
  • Correct Answer:

Q. 388   Which of the following class styles a table as a nice basic table with stripes on rows?
  • Correct Answer: B. .table-striped

Q. 389   Which of the following class styles a table with borders surrounding every element and rounded corners around the entire table?
  • Correct Answer: C. .table-bordered

Q. 390   Which of the following class styles a table with a light gray background to rows while the cursor hovers over them?
  • Correct Answer: C. .table-hover

Q. 391   Which of the following class applies the hover color to a particular row or cell of a table?
  • Correct Answer: A. .active

Q. 392   Which of the following class indicates a successful or positive action?
  • Correct Answer: C. .success

Q. 393   Which of the following class indicates a warning that might need attention?
  • Correct Answer: D. .warning

Q. 394   Which of the following class indicates a dangerous or potentially negative action?
  • Correct Answer: D. .danger

Q. 395   Which of the following class can be used to create a responsive table?
  • Correct Answer: A. .table-responsive

Q. 396   Which of the following class is required to be added to form tag to make it inline?
  • Correct Answer: B. .form-inline

Q. 397   Which of the following class is required to be added to form tag to make it horizontal?
  • Correct Answer: B. .form-horizontal

Q. 398   Which of the following bootstrap style of button creates a default/ standard button?
  • Correct Answer: A. .btn

Q. 399   Which of the following bootstrap style of button provides extra visual weight and identifies the primary action in a set of buttons?
  • Correct Answer: D. .btn-primary

Q. 400   Which class adds zebra-stripes to a table?
  • Correct Answer: D. .table-striped

Q. 401   Which class shapes an image to a circle?
  • Correct Answer: C. .rounded-circle

Q. 402   Which class is used to create a big box for calling extra attention?
  • Correct Answer: B. .jumbotron

Q. 403   Which button class is used to create a large button?
  • Correct Answer: A. .btn-lg

Q. 404   Which class is used to create a button group?
  • Correct Answer: A. .btn-group

Q. 405   Which class is used to create a badge?
  • Correct Answer: D. .badge

Q. 406   Which class is used to create a loader?
  • Correct Answer: C. .spinner-border

Q. 407   Which class is used to create a basic pagination?
  • Correct Answer: C. .pagination

Q. 408   Which class is used to create a basic list group?
  • Correct Answer: B. .list-group

Q. 409   Which class adds a heading to a card?
  • Correct Answer: D. .card-header

Q. 410   Which class indicates a dropdown menu?
  • Correct Answer: B. .dropdown

Q. 411   A standard navigation bar is created with:
  • Correct Answer: D. < nav class= "navbar navbar-expand-md " >

Q. 412   Which component is used to cycle through elements, like a slideshow?
  • Correct Answer: C. Carousel

Q. 413   Which attribute is used to create a tooltip?
  • Correct Answer: D. data-toggle="tooltip"

Q. 414   Which contextual class indicates a succesful or positive action?
  • Correct Answer: B. .bg-success

Q. 415   Which contextual class indicates a dangerous or potentially negative action?
  • Correct Answer: B. .bg-danger

Q. 416   The Bootstrap grid system has four classes which defines screen size:
  • Correct Answer: B. xs, sm, md, lg

Q. 417   Which class is use to display black navigation bar?
  • Correct Answer: B. .navbar-inverse

Q. 418   Which class is used to add rounded corners to an image?
  • Correct Answer: B. .rounded

Q. 419   Which of the following is true about Jumbotron?
  • Correct Answer: C. Both of the above

Q. 420   The bootstrap class md means for
  • Correct Answer: C. small laptops

Q. 421   Which class is used to create warning notification alerts in Bootstrap?
  • Correct Answer: B. .alert-warning

Q. 422   Which class is used to create a button as a link in bootstrap?
  • Correct Answer: B. .btn-link

Q. 423   Which of the following class is used to create thumbnail image?
  • Correct Answer: D. .img-thumbnail

Q. 424   .img-circle class makes the entire image round by adding border-radius:_________.
  • Correct Answer: A. 50%

Q. 425   The contextual classes that are used to create colored progress bar:
  • Correct Answer: D. All of the above

Q. 426   The .container class provides
  • Correct Answer: B. Fixed width container

Q. 427   Which class creates pagination?
  • Correct Answer: A. pagination

Q. 428   Default size of H3 bootstrap heading
  • Correct Answer: D. 24px

Q. 429   Which class creates list of items?
  • Correct Answer: B. list-group

Q. 430   Default size of H2 bootstrap heading
  • Correct Answer: C. 30px

Q. 431   Which is default for a form
  • Correct Answer: B. Vertical Form

Q. 432   Default size of H1 bootstrap heading
  • Correct Answer: D. 36px

Q. 433   Default size of H6 bootstrap heading
  • Correct Answer: B. 12px

Q. 434   The bootstrap class xs means for
  • Correct Answer: A. phones

Q. 435   Bootstrap’s global default font-size is
  • Correct Answer: D. 14px

Q. 436   The Carousel plugin is a component
  • Correct Answer: C. For cycling through elements like slideshow

Q. 437   In Bootstrap we can addfor
  • Correct Answer: A. Proper Rendering and Zooming in mobile

Q. 438   What is latest version of bootstrap?
  • Correct Answer: D. version 5

Q. 439   Bootstrap is used for
  • Correct Answer: D. Web applications

Q. 440   Which class is used to create a badge danger?
  • Correct Answer: D. .badge-danger

Q. 441   Which class is used to create a pagination?
  • Correct Answer: A. .pagination

Q. 442   We use the ___ class to make any element fixed/stay at the top of the page when you scroll past it.
  • Correct Answer: C. .sticky-top

Q. 443   The ___ class adds a scrollbar to the table when needed
  • Correct Answer: D. .table-responsive

Q. 444   In list groups, which class is used to highlight the current item?
  • Correct Answer: A. .active

Q. 445   Which class to create border in bootstrap?
  • Correct Answer: B. .border

Q. 446   In Bootstrap, content must be placed within...
  • Correct Answer: A. Columns

Q. 447   If you want to have 3 equal columns in Bootstrap, which class would you use?
  • Correct Answer: A. .col-md-4

Q. 448   Is it true that the Bootstrap grid system works across multiple devices?
  • Correct Answer: A. yes

Q. 449   Which of the following is correct method to add a success button.
  • Correct Answer: A. .btn and .btn-success

Q. 450   Which of the following class in Bootstrap is used to create an striped progress bar?
  • Correct Answer: A. .progress-bar-striped

Q. 451   Which of the following class in Bootstrap is used for creating the small size modals?
  • Correct Answer: A. .modal-sm

Q. 452   How do you add shadow to elements in CSS3?
  • Correct Answer: A. box-shadow: 10px 10px 5px grey;

Q. 453   How can you created rounded corners using CSS3?
  • Correct Answer: C. border-radius: 30px;

Q. 454   How to rotate objects using CSS3?
  • Correct Answer: C. rotate-object: 30deg;

Q. 455   How to re-size/scale objects using CSS3?
  • Correct Answer: A. transform: scale(1.5);

Q. 456   __________ is a property that allows developers to add rounded corners on the design elements.
  • Correct Answer: D. Border-Radius

Q. 457   Which of the following is correct method to add a warning button.
  • Correct Answer: C. .btn and .btn-warning

Q. 458   Which of the following class in Bootstrap is used to create an progress bar?
  • Correct Answer: B. .progress-bar

Q. 459   If you want to have 4 equal columns in Bootstrap, which class would you use?
  • Correct Answer: D. .col-md-3

Q. 460   If you want to have 2 equal columns in Bootstrap, which class would you use?
  • Correct Answer: B. .col-md-6

Q. 461   If you want to have 6 equal columns in Bootstrap, which class would you use?
  • Correct Answer: A. .col-md-2

Q. 462   Which class is use to fading effect to alert in bootstrap?
  • Correct Answer: D. Both A. and B.

Q. 463   Which class is use to add slider caption in bootstrap?
  • Correct Answer: A. .carousel-caption

Q. 464   Where in an HTML document is the correct place to refer to an internal style sheet?
  • Correct Answer: A. In the <head> section

Q. 465   Which HTML attribute is used to define inline styles?
  • Correct Answer: B. style

Q. 466   Which is the correct CSS syntax?
  • Correct Answer: D. body {color: black;}

Q. 467   How do you add a background color for all elements?
  • Correct Answer: B. hl {background-color:#FFFFFF;}

Q. 468   Which CSS property is used to change the text color of an element?
  • Correct Answer: C. color

Q. 469   Which CSS property controls the text size?
  • Correct Answer: A. font-size

Q. 470   How do you display hyperlinks without an underline?
  • Correct Answer: B. a {text-decoration:none;}

Q. 471   How do you display a margin like this:
The margin-top = 10 pixels The margin-bottom = 5 pixels The margin-left = 20 pixels The margin-right = 1pixel?
  • Correct Answer: C. margin: 10px 1px 5px 20px;

Q. 472   Which property is used to change the left margin of an element?
  • Correct Answer: B. margin-left

Q. 473   When using the padding property; are you allowed to use negative values?
  • Correct Answer: B. No

Q. 474   How do you make a list type none?
  • Correct Answer: A. list-style-type: none;

Q. 475   How do you select an element with id demo?
  • Correct Answer: B. #demo

Q. 476   How do you select elements with class name test?
  • Correct Answer: D. .test

Q. 477   What is the default value of the position property?
  • Correct Answer: B. static

Q. 478   Which of the following property specifies the right margin of an element?
  • Correct Answer: A. margin-right

Q. 479   How do you display the following padding:
The top padding = 10 pixels The bottom padding = 5 pixels The left padding = 20 pixels The right padding = 1pixel
  • Correct Answer: D. padding: 10px 1px 5px 20px;

Q. 480   What property and value do we use if we want to align text to the right?
  • Correct Answer: A. text-align: right;

Q. 481   What property and value do we use if we want to align text to the justify?
  • Correct Answer: D. text-align: justify;

Q. 482   Which class adds a text white to a page?
  • Correct Answer: C. Both A and B

Q. 483   Which class helps a proper dark background in bootstrap?
  • Correct Answer: A. .bg-dark

Q. 484   which class make a spinner in bootstrap?
  • Correct Answer: C. .spinner-border

Q. 485   What does "padding: 50px 0px 20px 0px" specifies?
  • Correct Answer: A. only top and bottom

Q. 486   Which of the following CSS selectors are used to specify tag elements?
  • Correct Answer: B. p

Q. 487   Which of the following is the property of the CSS box model?
  • Correct Answer: D. height-width

Q. 488   Which of the following attribute specifies the URL of the linked resource?
  • Correct Answer: D. href

Q. 489   Which of the following property adds padding to the top of an element?
  • Correct Answer: C. padding-top

Q. 490   Which of the following property sets a consistent margin on all four sides of the affected element?
  • Correct Answer: B. margin

Q. 491   Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
  • Correct Answer: C. background-attachment

Q. 492   HTML FULL FORM?
  • Correct Answer: A. HYPER TEXT MARKUP LANGUAGE

Q. 493   What is React.js?
  • Correct Answer: B. A JavaScript library

Q. 494   Who developed React.js?
  • Correct Answer: B. Facebook

Q. 495   What is a React component?
  • Correct Answer: A. A function or class that optionally accepts inputs and returns a React element

Q. 496   How do you create a React component using a function?
  • Correct Answer: A. function MyComponent() { return
    Hello World
    ; }

Q. 497   What is JSX?
  • Correct Answer: A. A JavaScript XML

Q. 498   How do you embed JavaScript expressions in JSX?
  • Correct Answer: B. Using curly braces

Q. 499   What is the purpose of render() in a React component?
  • Correct Answer: B. To describe what the UI should look like

Q. 500   Which method in a React class component is used to set initial state?
  • Correct Answer: C. constructor

Q. 501   How do you handle state in a functional component?
  • Correct Answer: B. Using the useState hook

Q. 502   How can you prevent a component from rendering?
  • Correct Answer: B. Returning null from render()

Q. 503   What is a key in React and why is it important?
  • Correct Answer: A. A unique identifier used to optimize rendering

Q. 504   Which lifecycle method is called after the component is rendered for the first time?
  • Correct Answer: C. componentDidMount

Q. 505   How do you pass a method from a parent component to a child component?
  • Correct Answer: A. As a prop

Q. 506   Which hook is used to perform side effects in functional components?
  • Correct Answer: B. useEffect

Q. 507   Which of the following methods is used to update state in a class component?
  • Correct Answer: B. setState

Q. 508   What is the purpose of the useEffect hook in React?
  • Correct Answer: B. To fetch data or run side effects

Q. 509   How can you conditionally apply a class to a React element?
  • Correct Answer: B. Using ternary operators inside className

Q. 510   Which method is used to remove a component from the DOM?
  • Correct Answer: B. componentWillUnmount

Q. 511   What is the virtual DOM in React?
  • Correct Answer: A. A copy of the real DOM that is kept in memory and synced with the real DOM

Q. 512   How can you lift state up in React?
  • Correct Answer: B. By moving state to a common ancestor component

Q. 513   What is a pure component in React?
  • Correct Answer: B. A component that only re-renders when its props or state change

Q. 514   Which of the following can be used to share logic across React components?
  • Correct Answer: D. All of the above

Q. 515   What does ReactDOM.render() do?
  • Correct Answer: C. It renders a React element into the DOM

Q. 516   Which React hook should you use for managing form inputs?
  • Correct Answer: C. useState

Q. 517   What is a higher-order component (HOC) in React?