mcqs bucket

  • Computer ProgrammingMcqs Questions | MCQs Bucket

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews
Here is the MCQs guide for the topic of Computer Programming. you will find various types of questions along with there answers in this
Q. Which operator is used to check if two values are equal and of same data type?
A.
===
B.
!=
C.
==
D.
=


Show Answer
Q. The if statement is used to execute some code only if a specified condition is true
A.
True
B.
False


Show Answer
Q. What is the default value of the position property?
A.
relative
B.
static
C.
fixed
D.
absolute


Show Answer
Q. How do you group selectors?
A.
Separate each selector with a space
B.
Separate each selector with a comma
C.
Separate each selector with a plus sign


Show Answer
Q. How do you select all p elements inside a div element?
A.
div p
B.
div.p


Show Answer
Q. How do you select elements with class name "test"?
A.
.test
B.
test
C.
#test


Show Answer
Q. How do you select an element with id "demo"?
A.
#demo
B.
demo
C.
.demo


Show Answer
Q. How do you make a list that lists its items with squares?
A.
list-style-type: square;
B.
list: square;
C.
ist-type: square;


Show Answer
Q. When using the padding property; are you allowed to use negative values?
A.
Yes
B.
No


Show Answer
Q. Which property is used to change the left margin of an element?
A.
margin-left
B.
padding-left
C.
indent


Show Answer