0% found this document useful (0 votes)
12 views9 pages

Apply OOP Coc

Uploaded by

ethioawashmedia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views9 pages

Apply OOP Coc

Uploaded by

ethioawashmedia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

https://www.includehelp.com/mcq/css-multiple-choice-questions-mcqs.

aspx

Apply Object-Oriented Programming Language Skills


Which is not a feature of OOP in general definitions?
a) Efficient Code
b) Code reusability
c) Modularity
d) Duplicate/Redundant data
Which feature of OOP indicates code reusability?
a) Abstraction
b) Polymorphism
c) Encapsulation
d) Inheritance
The ability to query data, as well as insert, delete, and alter tuples, is offered by
____________
a) TCL (Transaction Control Language)
b) DCL (Data Control Language)
c) DDL (Data Definition Langauge)
d) DML (Data Manipulation Langauge)

1. If and only if a given ___ condition is met, a ___ operation will


combine related tuples from separate relations.

A. Join
B. Return
C. Date
D. Constraint

With a ___, no tuples in A have any matches in B, and there are


no tuples in B that have any matches in A.

A. Natural Join
B. Left Outer Join
C. Right Outer Join
D. Full Outer Join

A _________ consists of a sequence of query and/or update statements.


a) Transaction
b) Commit
c) Rollback
d) Flashback

Which CSS property defines the radius of an element's


corners?
A. border-corner
B. radius
C. corner
D. border-radius

HTML is the standard ____language for creating Web pages.

A. scripting
B. programming
C. styling
D. markup

Which is the correct syntax to include comment in an HTML


document?

A. //
B. /* Comment */
C. // Comment //
D. <!-- Comment -->

Which element/tag defines a paragraph?

A. <p>
B. <pre>
C. <panel>
D. None of the above

Which HTML attribute is used to define styles of an element?

A. <style>
B. <css>
C. style
D. css

Which is the correct HTML statement to define the red color of


the paragraph text?

A. <p style="color: #ff0000;">


B. <p style="color: red;">
C. Both A. and B.
D. None of the above

Which is the correct syntax of <a> tag?


A. <a src="url">link text</a>
B. <a link="url">link text</a>
C. <a href="url">link text</a>
D. <a srclink="url">link text</a>

When there are no matching values between two tables of a database, which of
the following join returns zero records?
a) Self join
b) Full join
c) Inner join
d) Right join

Which of the following is not an OOPS concept?


a. Encapsulation
b. Polymorphism
c. Exception
d. Abstraction
4) Which feature of OOPS described the reusability of code?
e. Abstraction
f. Encapsulation
g. Polymorphism
h. Inheritance
Which among the following feature is not in the general definition of OOPS?
i. Modularity
j. Efficient Code
k. Code reusability
l. Duplicate or Redundant Data
Which feature of OOPS derives the class from another class?
m. Inheritance
n. Data hiding
o. Encapsulation
p. Polymorphism

Which of the following feature is also known as run-time binding or late binding?

Dynamic typing
Dynamic loading
Dynamic binding
Data hiding

Which of the following OOP concept binds the code and data together and keeps
them secure from the outside world?

Polymorphism
Inheritance
Abstraction
Encapsulation
Table1 LEFT JOIN Table2 returns _____
a) All records from the Table2 and the matched records from the Table1
b) All records from the Table1 and the matched records from the
Table2
c) Records that have matching values in both tables.
d) All records when there is a match in either Table1 or Table2

Which definition best defines the concept of abstraction?


Hides the important data
Hides the implementation and showing only the features
Hiding the implementation
Showing the important data

Which of the following definition best describes the concept of polymorphism?

It is the ability to process the many messages and data in one way
It is the ability to process the undefined messages or data in at least
one way
It is the ability to process the message or data in more than
one form
It is the ability to process the message or data in only one form

Which feature of OOP indicates code reusability?


a) Encapsulation
b) Inheritance
c) Abstraction
d) Polymorphism
If a function can perform more than 1 type of tasks, where the function name
remains same, which feature of OOP is used here?
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Abstraction

Which of the following is a property of transaction?

A. Atomicity
B. Consistency
C. Durability
D. All of the above
___ states that all operations of a transaction must occur
simultaneously; otherwise, the transaction will be aborted.

A. Atomicity
B. Consistency
C. Isolation
D. Durability

A database's consistent state is measured by the ___ property.

A. Consistency
B. Rollback
C. Durability
D. Isolation

What is the correct syntax for referring an external CSS?

A. <link rel="stylesheet" type="text/css"


href="mystyle.css">
B. <stylesheet rel="stylesheet" type="text/css"
href="mystyle.css">
C. <style rel="stylesheet" type="text/css" href="mystyle.css">
D. All of the above

What is a CSS selector?

A. A CSS selector is the CSS class name


B. A CSS selector is the set of properties that are going to be
applied on HTML elements
C. A CSS selector is name of CSS file.
D. A CSS selector is the first part of a CSS Rule. It may an
HTML element or pattern of elements.

In a CSS file, there is a CSS rule for paragraphs tags – what


does p can be called?

A. Selector
B. Attribute
C. Property
D. Tag

Internal styles are written within the _____ element.


A. <style>…</style>
B. <css>…</css>
C. <stylesheet>…</stylesheet>
D. Both A. and B.

Inline styles are written within the _____ attribute.

A. style
B. css
C. stylesheet
D. Both A. and B.

CSS comments are placed within the ______.

A. //
B. /* and */
C. <* and *>
D. <! And !>

Which property is used to define the text color?

A. text-color
B. color
C. font-color
D. Both A. and B.

Which property is used to define the background color?

A. bgcolor
B. bg-color
C. background
D. background-color

From the given options which is/are the valid way to represent
a color?

A. A valid color name like "blue"


B. HEX code like "#0000ff"
C. RGB Value like "rgb(0,0,255)
D. All of the above

Which property is used to define the font of the element's


text?
A. font
B. font-family
C. font-style
D. All of the above

To make a text italic, which CSS property is used?

A. font
B. font-family
C. font-style
D. All of the above

What are the valid values of font-style property?

A. italic, bold, bolder


B. normal, bold, italic
C. underline, bold, italic
D. inherit, italic, normal, oblique

Why font-weight property is used?

A. Sets how thick or thin characters in text should be


displayed.
B. Sets the size of the font
C. Both A. and B.
D. None of the above

What is/are the correct value(s) of font-weight property?

A. bold, italic, underline


B. normal, bold, italic
C. normal, bold, bolder, lighter, initial, and inherit
D. None of the above

Which is the correct inline CSS for p tag to define paragraph's


text and background colors?

A. <p css="color: red; background-color: yellow;">


B. <p cssstyle="color: red; background-color: yellow;">
C. <p inline="color: red; background-color: yellow;">
D. <p style="color: red; background-color: yellow;">

What is the correct syntax of border property in CSS?


A. border: border-width border-style border-color
B. border: border-color border-width border-style
C. border: border-style border-width border-color
D. All of the above

Which of the following is the correct syntax to display the


hyperlinks without any underline?

A. a {text-decoration : underline;}
B. a {text-decoration : none;}
C. a {text-decoration : block;}
D. None of the above

Which of the following is the correct syntax to remove the


underline on hyperlinks and visited hyperlinks?

A. a {text-decoration : underline;}, a:visited {text-decoration :


underline;}
B. a {text-decoration : block;}, a:visited {text-decoration : block;}
C. a {text-decoration : none;}, a:visited {text-decoration :
none;}
D. None of the above

Which CSS property is used to style the hyperlinks on hover


(Mouse over)?

A. a:mouseover
B. a:move
C. a:mover
D. a:hover

If you want to use a green dotted border around an image,


which CSS property is used for that?

A. border-style
B. border-color
C. border-decoration
D. Both A. and B.

Which CSS property and value is used to center an element?

A. text-align:center
B. align:center
C. text-align:middle
D. align:middle

What is the use of "text-align:justify" in CSS?

A. Stretches the lines so that each line has equal width


B. Stretches the lines so that each line can be arranged in left
alignment
C. Stretches the lines so that each line can be arranged in right
alignment
D. None of the above

Which CSS property is used to specify the indentation of the


first line of a text?

A. text-align
B. padding-left
C. margin-left
D. text-indent

Which CSS property is used to specify the space between the


characters in a text?

A. text-space
B. letter-space
C. letter-spacing
D. letter-distance

You might also like