Exam KPIT | Html Element | C Sharp (Programming Language)

March 3, 2018 | Author: Anonymous | Category: HTML/HTML5
Share Embed


Short Description

C) External CSS with <link> element. .... inserting image Which attribute you'll use with TD tag to merge two cell...

Description

1.

Which Which of of the the foll followi owing ng are are the the bac backgr kground ound  properties in CSS CSS?? i) background-color ii) background-image iii) background-repeat iv) background-position v) background

12p:97 ....................... ....................... 6%p7 #) one of the above ;.

i) &he border-spacing specifies the width that should appear between table rows. ii) &he empt!-cells specifies whether the border should be shown if a cell is empt!. empt!.

A) i ii iii and iv onl! ") i ii iii and v onl! C) i ii iv and v onl! #) All i ii iii iv and v $.

State State whet whether her the the state stateme ment nt is%ar is%aree &rue &rue.. i) font-famil! propert! is used to change the face of a font. ii) font-variant propert! is used to create smallcaps effects. A) i-&rue ii-'alse ") i-'alse ii-&rue C) i-&rue ii-&rue #) i-'alse ii-'alse

(.

*.

&he &he CSS CSS link linkss pro prope pert rtie iess are are A) link visited hover active ") link visit hover active C) link visited over active #) link visited hover active inactive inactive +nternet ,plorer  uses  uses ....................... ....................... propert! to create transparent images. A) -mo-opacit! ") filter alpha/opacit!0) C) "oth of the above #) one of the above

2.

&he diff differe erent nt wa!s wa!s to to associ associat atee st!les st!les with with a 3&45 document  3&45 document is%are A) ,mbedded CSS with 6st!le7 element ") +nline CSS with st!le attribute. C) ,ternal CSS with 6link7 element. #) All of the above

8.

Which Which of the the follo followin wing g is corr correct ect CSS s!nt s!nta a for for using font propert!? A) 6p st!le09font italic bold 12p:97 ................ 6%p7 ") 6p st!le09font-st!le italic font-weight bold font-sie 12p:97 ................... ................... 6%p7 C) 6p st!le09font italic bold

State State &rue &rue of of 'alse 'alse for for the CSS CSS table table prop propert erties ies..

A) i-&rue ii-'alse ") i-'alse ii-&rue C) i-&rue ii-&rue #) i-'alse ii-'alse . &he ........ ............. ......... ........ .... specifi specifies es whether whether a border should be solid dashed line doted line double line groove etc. A) border-la!out ") border-decoration C) border-st!le #) border-weight 11. Which of the following following are are the advantage advantagess of CSS CSS?? i) CSS saves time ii) age load faster iii) ,as! maintenance iv) 4ultiple compatibilit! A) i ii and iii onl! ") ii iii and iv onl! C) i ii and iv onl! #) All i ii iii and iv 1$. A CSS CSS st!le st!le rule is is made up of three three parts parts which which are ..

i) Selector ii) ropert! iii) @alue iv) Attribute

1=. Which of the following is % are the measurement units in CSS?

A) i ii and iii onl! ") ii iii and iv onl! C) i ii and iv onl! #) All i ii iii and iv

i) H ii) cm iii) em iv) pc v) p A) i ii iii and iv onl! ") i ii iii and v onl! C) i ii iv and v onl! #) All i ii iii iv and v

1(. Which is not the selector t!pe of CSS? A) &!pe selector  ") niversal selector  C) 5ocal selector  #) #escendant selector 

$>. &he possible formats of CSS colors are. i) 3e code - IIJJ"" ii) Short 3e Code - IJ" iii) IJ"H - rgb/rrrH gggH bbbH) iv) Ke!word - teal blue black 

1*. &he correct eample of class selector is. A) h$.t!pe1 Bcolor >>>>>>:D ") h$ t!pe1 Bcolor >>>>>>:D C) h$ t!pe1 Bcolor >>>>>>:D #) h$ t!pe1 Bcolor >>>>>>:D

A) i ii and iv onl! ") ii iii and iv onl! C) i iii and iv onl! #) All i ii iii and iv

12. CSS comments are inserted inside. A) %%...................%% ") 6E..................7 C) %F..................F% #) All of the above 18. We can handle old browsers b! placing CSS codes inside.

3&45 1.

2.

A) %%...................%% ") 6E..................7 C) %F..................F% #) one of the above 1;. State whether &rue or 'alse. i) An! inline st!le sheet takes highest priorit!. ii) An! rule defined in 6st!le7 ...........................6%st!le7 tag will override rules defined in an! eternal st!le sheet file. A) i-&rue ii-'alse ") i-'alse ii-&rue C) i-&rue ii-&rue #) i-'alse ii-'alse 1>8Z&edZZ'inanceZ $(>>>): insert into ,mplo!ee values/1>>$IitaSales$>>>>): What will be the result of the Muer!? a) All statements eecuted  b) ,rror in create statement c) ,rror in insert into ,mplo!ee

#"4S

values/1>>8&ed'inance ): d) ,rror in insert into ,mplo!ee

1. #45 is provided for 

values/1>>>>>):

/A) #escription of logical structure of database. /") Addition of new structures in the database s!stem. /C) 4anipulation  processing of database. /#) #efinition of p h!sical structure of database s!stem.

8. Select F from emplo!ee where deptQname0LComp SciL: +n the SX5 given above there is an error . +dentif! the

$. &he #"4S language component which can be embedded in a program is /A) &he data definition language /##5). /") &he data manipulation language /#45). /C) &he database administrator /#"A).

error . a) #eptQname  b) ,mplo!ee c) [Comp SciL d) 'rom

/#) A Muer! language.

(. Which of the following is correct /A) a SX5 Muer! automaticall! eliminates duplicates. /") SX5 permits attribute names to be repeated in the same

;. Select name

relation.

from instructor 

/C) a SX5 Muer! will not work if there are no indees on

where dept name 0 Zh!sicsZ

the relations

order b! name:

/#) one of these

"! default the order b! clause lists items in QQQQQQ order. a) #escending

*. A primar! ke! is combined with a foreign ke! creates /A) arent-Child relationship between the tables that connect them.

 b) An! c) Same d) Ascending

/") 4an! to man! relationship between the tables that connect them.

)  deptQname varchar/$>) Salar! numeric uniMue/,mpQidame)): insert into ,mplo!ee values/1>>$ YIossZ YCS,Z 1>>>>)

") Strong entit!

C) on attributes entit!

d. S,5,C& cit! temperature condition 'IN4 weather W3,I, condition ",&W,, /]sunn!] ]cloud!]):

#) #ependent entit! =. Which of the following statements contains an error?

1*. What does the following Muer! find?

A) Select F from emp where empid 0 1 >>>(:

/S,5,C& #+S&+C& r.sid

") Select empid from emp where empid 0 1>>>8:

'IN4 boats b reserves r 

C) Select empid from emp:

W3,I, b.bid 0 r.bid

#) Select empid where empid 0 1>>= and lastname 0

A# b.color 0 ]red])

YJ,55,IZ:

4+S /S,5,C& #+S&+C& r.sid

1>. Which of the following statement on the view concept in SX5 is invalid ? TAU all views are not updatable T"U the views ma! be referenced in an SX5 statement whenever tables are referenced TCU the views are instantiated at the time the! are referenced and not when the! are defined T#U the definition of a view shouldnot have JIN "R clause in it

'IN4 boats b reserves r  W3,I, b.bid 0 r.bid A# b.color 0 ]green]) a. 'ind the sailor +#s of all sailors who have reserved red  boats but not green boats  b. 'ind the sailor +#s of at least one sailor who have reserved red boats but not green boats c. 'ind the sailor +ds of atmost one sailor who have reserved red boats but not green boats d. one of &hese

11. Which one of these is an aggregate function in SX5 ? TAU A@J T"U S,5,C& TCU NI#,I "R T#U one of these

12. Which of the following Muer! finds the name of the sailors who have reserved at least two boats? a. S,5,C& #+S&+C& s.sname 'IN4 sailors s reserves r1 reserves r$ W3,I, s.sid 0 r1.sid A# r1.sid 0 r$.sid A# r1.bid ^ r$.bid

1$. What is the meaning of 5+K, ]H>H>H] a. 'eature begins with two >]s  b. 'eature ends with two >]s c. 'eature has more than two >Zs d. 'eature has two >]s in it at an ! position

 b. S,5,C& #+S&+C& s.sname 'IN4 sailors s reserves r1 reserves r$ W3,I, s.sid 0 r1.sid A# CN&/r1.bid) 7 r$.bid c. S,5,C& #+S&+C& s.sname 'IN4 sailors s reserves r1 reserves r$ W3,I, s.sid 0 r1.sid A# r1.sid 0 r$.sid A# r1.bid 67 r$.bid d. All of these

1(. 'ind the names of these cities with temperature and

18. +f a Muer! involves N& A# NI with no parenthesis

condition whose condition is neither sunn! nor cloud!

a. N& will be evaluated first: A# will be evaluated

a. S,5,C& cit! temperature condition 'IN4 weather

second: NI will be evaluated last.

W3,I, condition N& + /]sunn!] ]cloud!]):

 b. N& will be evaluated first: NI will be evaluated

 b. S,5,C& cit! temperature condition 'IN4 weather

second: A# will be evaluated last.

W3,I, condition N& ",&W,, /]sunn!] ]cloud!]):

c. A# will be evaluated first: NI will be evaluated

c. S,5,C& cit! temperature condition 'IN4 weather

second: N& will be evaluated last.

W3,I, condition + /]sunn!] ]cloud!]):

d. &he order of occurrence determines the order of evaluation.

1;. &able emplo!ee has 1> records. +t has a non-55 SA5AIR column which is also  +X,. &he SX5 statement S,5,C& CN&/F) 'IN4 emplo!ee W3,I, SA5AIR 7 A55 /S,5,C& SA5AIR 'IN4 ,45NR,,):  prints a. 1>  b. = c. < d. >

1. +n SX5 which command/s) is/are) used to change a table]s storage characteristics? a. A5&,I &A"5,  b. 4N#+'R &A"5, c. C3AJ, &A"5, d. All of the above

PA@A

T"U final

X1. Which of the following ma! be part o f a class definition?

TCU static

TAU. instance variables T"U. instance methods

T#U none of these above X8. Which statements about P#"C are true?

TCU. constructors

TAU P#"C is an A+ to connect to relational- obect- and _45 data sources

T#U. all of the above 2.

T"U P#"C stands for Pava #ata"ase Connectivit!

,. none of the above

TCU P#"C is an A+ to access relational databases

X$. What is garbage collection in the contet of Pava?

T#U P#"C is an A+ to bridge the obect-relational mismatch between NN programs and relational databases

TAU. &he operating s!stem periodicall! deletes all of the  ava files available on the s!stem. T"U. An! package imported in a program and not used is automaticall! deleted. TCU. When all references to an obect are gone the memor! used b! the obect is automaticall! reclaimed.

X;. Which t!pe of driver provides P#"C access via one or more N#"C drivers? TAU &!pe 1 driver  T"U &!pe $ driver  TCU &!pe ( driver 

T#U. &he P@4 checks the output of an! Pava pro gram and deletes an!thing that doesn]t make sense.

T#U &!pe * driver 

T,U. Panitors working for Sun 4icroS!stems are reMuired to throw.

X Which of the following allows non repeatable read in P#"C Connection?

X2. A method cannot be overridden if it is Mualified b! which one of the following modifier?

TAU &IASAC&+NQI,A#QCN44+&&,#

TAU friendl!

T"U &IASAC&+NQI,A#QCN44+&&,#

TCU &IASAC&+NQS,I+A5+OA"5,

T#U Pava.util.Collection

T#U &IASAC&+NQI,,A&A"5,QI,A#

X18. &o eplicitl! throw an eception  QQQQQQ ke!word is used.

X11. Which t!pe of Statement can eecute parameteried Mueries?

TAU tr!

TAU reparedStatement

T"U ctach

T"U arameteriedStatement

TCU throw

TCU arameteriedStatement and CallableStatement

T#U throwing

T#U All kinds of Statements

X1;. +f a statement tries to divide b! ero which eception is thrown?

X1$. Which of these statement is incorrect? TAU Arithemtic,ception TAU All obect of a class are allotted memor! for the all the variables defined in the class. T"U +f a function is defined public it can be accessed b! obect of other class b ! inheritance.

T"U ullointer,ception TCU umber'ormat,ception T#U one of these

TCU main/) method must be made public. T#U All obect of a class are allotted memor! for the methods defined in the class. X1(. Which of these method of Nbect class can clone an obect?

X1: int ! 0 2 % : D catch /,ception e) B S!stem.out.println/9,ception9): D catch /Arithmetic,ception ae) B S!stem.out.println/9 Arithmetic ,ception9): D S!stem.out.println/9finished9): TAU finished

TAU Nbectcop!/) T"U ,ception T"U cop!/) TCU Compilation fails. TCU Nbect clone/) T#U Arithmetic ,ception T#U clone/) X1*. Which of these ke!words can be used to prevent inheritance of a class? TAU super  T"U constant TCU Class T#U final X12. Which interface provides the capabilit! to store obects using a ke!-value pair? TAU Pava.util.4ap T"U Pava.util.Set TCU Pava.util.5ist

X1=. What will be the output of the program? public class _ B public static void main/String TU args) B tr! B bad4ethod/): S!stem.out.print/9A9): D catch /,ception e) B S !stem.out.print/9"9): D finall! B S!stem.out.print/9C9): D S!stem.out.print/9#9): D public static void bad4ethod/) BD D TAU AC T"U "C TCU AC# T#U A"C# X$>. Which method is used to print the description of the eception? TAU printStack&race/)

T"U print,ception4essage/) TCU printStack4essage/) T#U print,ception&race/)

.:et uestions

# - All of the above.

X1. Which of the following is correct about Nbect &!pe in C?

X;. &he conditional logical operators can be overloaded.

A - &he Nb ect &!pe is the ultimate base class for all data t!pes in C Common &!pe S!stem /C&S). " - Nbect is an alias for S !stem.Nbect class. C - &he obect t!pes can be assigned values of an! other t!pes value t!pes reference t!pes predefined or userdefined t!pes. # - All of the above. X$. Which of the following statements is correct about encapsulation? A - ,ncapsulation is defined as the process of enclosing one or more items within a ph!sical or logical package. " - ,ncapsulation in obect oriented p rogramming methodolog! prevents access to implementation details. C - Abstraction allows making relevant information visible and encapsulation enables a programmer to implement the desired level of abstraction. # - All of the above. X(. Which of the following is correct about C? A - C is a modern general-purpose obect-oriented  programming language developed b! 4icrosoft. " - C was developed b! Anders 3elsberg and his team during the development of .et 'ramework. C - C is designed for Common 5anguage +nfrastructure /C5+). # - All of the above. X*. Which of the following operator represents a conditional operation in C? A - ? " - is C - as #-F

A - true " ` false X. Which class is used for 4S Access connectivit! with C /.net). A - Access#bConnection " - 4s#bConnection C - Nle#bConnection # - #bConnection X11. Which class decides in C .net proect to set the start form in windows application. A ` start.cs " ` program.cs C ` home.cs # ` new.cs X1$. Which of the following statements are correct about +nheritance in C.,&? 1.

A derived class obect contains all the base class data.

X2. Which of the following defines unboing correctl!? A - When a value t!pe is converted to obect t!pe it is called unboing. " - When an obect t!pe is converted to a value t !pe it is called unboing. C - "oth of the above. # - one of the above. X8. Which of the following is correct about nullable t!pes in C? A - C provides a special data t!pes the nullable t!pes to which !ou can assign normal range of values as well as null values. " - Rou can assign true false or null in a ullable6bool7 variable. C - Rou can store an! value from -$1*;*
View more...

Comments

Copyright © 2017 DATENPDF Inc.