الخميس، 15 أغسطس 2013

Solved MCQ of JDBC and JSP set-1

English: JDBC type 3 driver (Network Protocol ...
English: JDBC type 3 driver (Network Protocol driver) (Photo credit: Wikipedia)

1. What is JDBC?

A) java compiler

B) Java API

C) Java interpreter

D) Both A and B



2. JDBC is a ..................... interface, which means that it is used to invoke SQL commands directly

A) low-level

B) middle-level

C) higher-level

D) user



3. ODBC is not appropriate for direct use from java because it uses a ..............

A) C interface

B) C# interface

C) java interface

D) Both A and C



4. Java Soft provides ................. JDBC product components as part of the java Developer's Kit (JDK)

A) three

B) two

C) four

D) single



5. Kind of driver converts JDBC calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS is known as

A) JDBC-Net pure Java driver

B) JDBC-ODBC Bridge plus ODBC driver

C) Native-API partly-Java driver

D) Both A and B



6. JSP stands for ..........................

A) Java server Pages

B) Java server Programming

C) Java Server Process

D) Java Socket Programming



7. JSP includes a mechanism for defining ............................... or custom tags.

A) static attributes

B) local attributes

C) dynamic attributes

D) global attributes



8. JSP is not governed by the syntax and semantics defined by the ................... specifications.

A) Java 2

B) Java 2.4

C) Java 1

D) Java 1.2
 


9. JSP containers are required to support ..................... different formats of JSP syntax.

A) Two

B) Three

C) Four

D) Only One



10. The difference between Servlets and JSP is the ................

A) translation

B) compilation

C) syntax

D) Both A and B


Answers:

1.   B) Java API
2.   A) low-level
3.   A) C interface
4.   A) three
5.   C) Native-API partly-Java driver
6.   A) Java server Pages
7.   C) dynamic attributes
8.   A) Java 2
9.   A) Two
10. C) syntax

You Might also view the following Related Posts

Enhanced by Zemanta

الأربعاء، 14 أغسطس 2013

MCQ of C# with Answer set-3


MCQs in C#
MCQs in C#
1. The general syntax for declaring an enumeration in C# is .

A) <enum_name> enum {enum list};

B) enum <enum_name> {enum list};

C) <enum_type> enum <enum_name> {enum list};

D) None of the above


2. State True or False for the difference between classes and structures.

i) Structures do not support inheritance

ii) Structure can have default constructor

iii) Classes are reference types and structures are value types.

A) i- True, ii- False, iii-True

B) i- False, ii- True, iii-True

C) i-True, ii-True, iii-False

D) i- False, ii- False, iii-True


3. The various techniques provided by C# to implement static polymorphism is/are

i) Function overloading

ii) Static overloading

iii) Operator overloading

A) i and ii only

B) i and iii only

C)  ii and iii only

D) All i, ii, iii


4. Operator overloading is creating functions with special names, the keyword ........................ operator followed by the symbol for the operator being defined.

A) Overload

B) Update

C) Operator

D) Implement


5. Match the following operators in C# with their description for the operator overload property.

i) +, -, !, ~, ++, --            a) cannot be overloaded

ii) ==, !=, <, >, <=, >=    b) cannot be overloaded directly

iii) &&, ||                         c) take one operand and can be overloaded

iv) =, ., ? :, ->                  d) can be overload

A) i-d, ii-c, iii-a, iv-b

B) i-b, ii-c, iii-a, iv-d

C) i-c, ii-d, iii-b, iv-a

D) i-a, ii-c, iii-d, iv-b


6. Match the following preprocessor directives in C# with their description?

i) #elif                      a) specifies the end of conditional directive

ii) #endif                   b) allows to undefine a symbol.

iii) #undef                  c) allows creating compound conditional directive

A) i-b, ii-c, iii-a

B) i-b, ii-c, iii-a

C) i-c, ii-a, iii-b

D) i-a, ii-c, iii-b


7. The operator symbols can be used for the conditional directives in C# is/are.

i) = = (equality)         ii) ! = (inequality)            iii) && (and)

iv) || (or)                   v) >= (grater than or equal to)

A) i, ii  iii and iv only

B) i, iii and iv only

C) i, ii, iii and v only

D) All i, ii, iii, iv and v


8. Conditional directives are beginning with a ...................... directive and must be terminated with ....................... directive and must be terminated with .............. directive.

A) #if, #endif

B) #start, #end

C) #elif, #endelif

D) Both A and B


9. The keywords provided by C# for exception handling are.

i) try             ii) catch             iii) finally             iv) tryif             v) throw

A) i, ii and iii and iv only

B) ii, iii and iv and v only

C) i, ii and iii and v only

D) All i, ii, iii and iv


10. The ................... block is used to execute a given set of statement, whether the exception is thrown or not.

A) try

B) tryif

C) finally

D) throw


Answers:

1.   B) enum <enum_name> {enum list};
2.   A) i- True, ii- False, iii-True
3.   B) i and iii only
4.   C) Operator
5.   C) i-c, ii-d, iii-b, iv-a
6.   C) i-c, ii-a, iii-b
7.   A) i, ii and iii and iv only
8.   A) #if, #endif
9.   C) i, ii and iii and v only
10. C) finally


You Might also view the following Related Posts

الاثنين، 12 أغسطس 2013

Solved Objective Questions of C# set-1


1. Which of the following is not the component of .Net framework?

A) Common Language Run time(CLR)

B) .Net Framework Library.

C) Component Network

D) Windows Workflow Foundation (WF)


2. Following is/are the Integrated Development Environment (IDE) for C#.

A) Visual Studio 2010 (VS)

B) Visual Web Developer

C) Both A and B
Visual overview of the Common CLR Language Inf...
Visual overview of the Common CLR Language Infrastructure, and how the components relate to each other. Converted to SVG from PNG version, originally by Foofy from English Wikipedia. (Photo credit: Wikipedia)

D) Only A


3. A C# program may consist of the following parts.

i) Namespace declaration

ii) Class methods

iii) A main method

iv) Statement & Expressions

A) i, ii and iii only

B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv


4. State True or False for naming class in C#.

i) The class name can be a C# keyword.

ii) A name must begin with a letter, can be followed by letters, digits and underscore.

A) i- True, ii- False

B) i- False, ii- True

C) i-True, ii-True

D) i- False, ii- False


5. ...................... is a name which can be used to identify a class, variable, function etc.

A) Keyword

B) Reference

C) Identifier

D) Object


6. .................... conversions are performed by C# compiler itself and ..................... conversions are performed by users by using predefined functions.

A) Implicit type, Explicit type

B) Explicit type, Implicit type

C) External type, Internal type

D) Internal type, External type


7. A variable can be declared by using which of the following syntax?

A) <variable_list> <data_type>;

B) <variable_list>, <data_type>

C) <data_type> <variable_list>

D) <data_type> <variable_list>;


8. Match the following.

i) *                  a) returns the address of an variable

ii) ? :                b) point to variable

iii) &                c) conditional expression

A) i-a, ii-b, iii-c

B) i-b, ii-c, iii-a

C) i-c, ii-a, iii-b

D) i-a, ii-c, iii-b


9. C# supports the following types of access specifiers.

i) public ii) friend iii) private iv) protected v) internal

A) i, ii, iii and iv only

B) i, iii, iv and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


10. ........................ access specifier allows a class to expose it's member variables and member functions to other functions and objects in the current application.

A) Internal

B) Protected

C) Private

D) Public


Answers:

1.  C) Component Network
2.  C) Both A and B
3.  D) All i, ii, iii  and iv
4.  B) i- False, ii- True
5.  C) Identifier
6.  A) Implicit type, Explicit type
7.  D) <data_type> <variable_list>;
8.  B) i-b, ii-c, iii-a
9.   B) i, iii, iv and v only
10. A) Internal


You Might also view the following Related Posts

السبت، 10 أغسطس 2013

Solved Objective Questions of CSS set-4


1. In CSS filters, ........................... will be used to create a shadow of object at the specified horizontal and vertical offset and color.

A) Drop shadow effect

B) Chroma filter

C) Shadow object effect

D) Shadow filter


2. ............................. will be used to create attenuated shadow in the direction and color specified.
English: graphic of the main CSS table spaces
English: graphic of the main CSS table spaces (Photo credit: Wikipedia)

A) Drop shadow effect

B) Chroma filter

C) Shadow object effect

D) Shadow filter


3. State whether the statements are true or false.

i) Glow effect will be used to create a glow around the object.

ii) The two parameters used in glow effect are color and intensity.

iii) Invert effect will be used to create a negative image

A) i-true, ii-true, iii-true

B) i- true, ii-false, iii-true

C) i-false, ii-true, iii-true

D) i-false, ii-false, iii-true


4. Which of the following are the parameters used in wave effect of CSS filter property?

i) add        ii) freq          iii) light          iv) phase         v) intensity


A) i, ii, iii and iv only

B) i, ii, iii and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


5. Match the different CSS media types with their descriptions.

i) all a) Intended for speech synthesizers.

ii) aural b) Intended primary for color computer screen.

iii) screen c) Intended for paged braille printers.

iv) embossed d) Suitable for all devices

A) i-a, ii-b, iii-c, iv-d

B) i-c, ii-d, iii-a, iv-b

C) i-d, ii-a, iii-b, iv-c

D) i-b, ii-c, iii-d, iv-a


6. The ................... property allows you to specify the content for a <caption> element should be placed in relationship to the table.

A) Caption

B) Caption-side

C) Caption-position

D) Caption-align



7. The ........................... property indicates whether a cell without any content should have a border displayed.

A) empty-row

B) empty-column

C) empty-cell

D) empty



8. The ........................ property for HTML tables in CSS specifies whether the browser should control the appearance of adjacent borders that touch each other.

A) border-spacing

B) border-collapse

C) caption-side

D) table-layout



9. The ................. property indicates whether the marker should appear inside or outside of the box containing the bullet points.

A) list-style-align

B) list-style-type

C) list-style-position

D) list-style-appearance



10 . The overflow property of CSS can take one of the following values.

i) visible                  ii) invisible              iii) hidden             iv) scroll           v) auto

A) i, ii, iii and iv only

B) i, iii, iv and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


Answers:

1.  A) Drop shadow effect
2.  D) Shadow filter
3.  B) i- true, ii-false, iii-true
4.  A) i, ii, iii and iv only
5.  C) i-d, ii-a, iii-b, iv-c
6.  B) Caption-side
7.  C) empty-cell
8.  B) border-collapse
9   C) list-style-position
10  B) i, iii, iv and v only


You Might also view the following Related Posts

الخميس، 8 أغسطس 2013

MCQ of CSS With Answer set-2

MCQ of CSS With Answer
English: css - absolute position (Photo credit: Wikipedia)

1. Which of the following are the background properties in CSS?

i) background-color ii) background-image iii) background-repeat

iv) background-position v) background

A) i, ii, iii and iv only

B) i, ii, iii and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


2. State whether the statement is/are True.

i) font-family property is used to change the face of a font.

ii) font-variant property is used to create small-caps effects.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False


3. The CSS links properties are

A) :link, :visited, :hover, :active

B) :link, :visit, :hover, :active

C) :link, :visited, :over, :active

D) :link, :visited, :hover, :active, :inactive


4. Internet Explorer uses ....................... property to create transparent images.

A) -moz-opacity:x

B) filter: alpha(opacity=x)

C) Both of the above

D) None of the above


5. The different ways to associate styles with a HTML document is/are

A) Embedded CSS with <style> element

B) Inline CSS with style attribute.

C) External CSS with <link> element.

D) All of the above


6. Which of the following is correct CSS syntex for using font property?

A) <p style="font: italic, bold, 15px;"> ................ </p>

B) <p style="font-style: italic font-weight: bold font-size: 15px;"> ................... </p>

C) <p style="font: italic bold 15px;"> ....................... </p>

D) None of the above


7. State True of False for the CSS table properties.

i) The border-spacing specifies the width that should appear between table rows.

ii) The empty-cells specifies whether the border should be shown if a cell is empty.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False


8. In CSS tables, the possible values for the caption-side property can have the following values.

A) top, bottom, left or right

B) top, bottom, center, left or right

C) top or bottom

D) left or right


9. The ................... property indicates whether a cell without any content should have a border displayed.

A) blank-cells

B) empty-cells

C) nocontent-cells

D) noborder-cells


10. The ..................... specifies whether a border should be solid, dashed line, doted line, double line, groove etc.

A) border-layout

B) border-decoration

C) border-style

D) border-weight

Answers:

1.  D) All i, ii, iii, iv and v
2.  C) i-True, ii-True
3.  A) :link, :visited, :hover, :active
4.  B) filter: alpha(opacity=x)
5.  D) All of  the above
6.  C) <p style="font: italic bold 15px;"> ....................... </p>
7.  B) i-False, ii-True
8.  A) top, bottom, left or right
9   B) empty-cells
10 C) border-style


You Might also view the following Related Posts

الأربعاء، 7 أغسطس 2013

Solved MCQ of CSS set-1

A perfect desktop image for CSS developers
Cascading Style Sheet (CSS) (Photo credit: Wikipedia)

1. Which of the following are the advantages of CSS?

i) CSS saves time ii) Page load faster

iii) Easy maintenance iv) Multiple compatibility


A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv


2. A CSS style rule is made up of three parts which are ..

i) Selector ii) Property

iii) Value iv) Attribute

A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv


3. Which is not the selector type of CSS?

A) Type selector

B) Universal selector

C) Local selector

D) Descendant selector


4. The correct example of class selector is .

A) h2.type1 {color: #000000;}

B) h2 type1 {color: #000000;}

C) h2 #type1 {color: #000000;}

D) #h2 type1 {color: #000000;}


5. CSS comments are inserted inside .

A) //...................//

B) <!..................>

C) /*..................*/

D) All of the above


6. We can handle old browsers by placing CSS codes inside.

A) //...................//

B) <!..................>

C) /*..................*/

D) None of the above


7. State whether True or False.

i) Any inline style sheet takes highest priority.

ii) Any rule defined in <style> ...........................</style> tag will override rules defined in any external style sheet file.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False


8. ...................... is used to import an external style sheet in a manner similar to the <link> element.

A) @insert

B) @import

C) #import

D) #insert


9. Which of the following is / are the measurement units in CSS?

i) % ii) cm iii) em iv) pc v) px

A) i, ii, iii and iv only

B) i, ii, iii and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


10. The possible formats of CSS colors are.

i) Hex code - #RRGGBB

ii) Short Hex Code - #RGB

iii) RGB% - rgb(rrr%, ggg%, bbb%)

iv) Keyword - teal, blue, black

A) i, ii and iv only

B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv

Answers:

1.  D) All i, ii, iii and iv
2.  A) i, ii and iii only
3.  C) Local selector
4.  A) h2.type1 {color: #000000;}
5.  C) /*..................*/
6.  B) <!..................>
7.  C) i-True, ii-True
8.  B) @import
9   D) All i, ii, iii, iv and v
10 D) All i, ii, iii and iv


You Might also view the following Related Posts

Solved MCQ of Microsoft Word set-1


1. In which shortcut key use to center the selecting text.

A) Ctrl+F

B) Ctrl+E

C) Ctrl+M

D) None of the above


2. You can Hyperlink the file

A) Pressing the Ctrl+Enter

B) Pressing Ctrl+Shift+Enter

C) Break command from view menu

D) Both A and C


3. Which of the following is not a part of standard office suite?

A) Word Processor

B) Database

C) Image Editor

D) File Manager


4. Which bar is usually located below that title bar that provides categorized options?

A) Menu bar

B) Toolbars

C) Status Bar

D) All of the above




5. Which of the following are valid Minimum and Maximum zoom size in MS Word?

A) 20, 200

B) 10, 300

C) 10, 500

D) 15, 400


6. Which of the following are the Minimum and Maximum font size of MS Word?

A) 1, 72

B) 2, 128

C) 4, 1800

D) 1, 1638


7. We can insert Maximum number of Columns are

A) 35

B) 45

C) 25

D) 15


8. To move the cursor page to page of documents.

A) Ctrl+ Page Down

B) Ctrl+Page UP

C) Both of the above

D) None of the above


9. The four types of mail merge main documents are

A) Form letters, directories, catalogs and envelopes

B) Form letters, Envelops and Mailing labels, directories and lists

C) Basic letters, envelopes, labels and list

D) Form letters, envelopes, mailing labels and catalog


10. You can break the active column using

A) Break From Insert Command

B) Ctrl+Shift+Enter

C) Ctrl+Enter

D) Both A and B

Answers:

1.  B) Ctrl+E
2.  D) Both A and C
3.  D) File Manager
4.  C) Status Bar
5.  C) 10, 500
6.  D) 1, 1638
7.  B) 45
8.  C) Both of the above
9   D) Form letters, envelopes, mailing labels and catalog