0% found this document useful (0 votes)
32 views4 pages

Final Event 3 VB

Aipdm

Uploaded by

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

Final Event 3 VB

Aipdm

Uploaded by

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

Used to call the procedure

What is the purpose of Invoke Method? Used to call any procedure Both None A
through Delegate variable
___________________ protects system resources from
Role‐based security Code‐based security Both of above None of above B
unauthorized calls
Which NameSpace is used to access the metadata in an
System.Reflection System.Assembler System.XML System.IO A
Assembly?
Which of the following namespace provides support for
obtaining information and dynamic creation of types at System.ComponentModel System.IO System.Data System.Reflection D
runtime?
Dim O as object=I ( as i an
Which statement shows Autoboxing? Dim I as integer=O Both None of the above B
integer)

What's the maximum number of parameters can a SQL


1024 128 256 512 C
Server 2008 stored procedure have

You have Two Different Tables, which share a primary


key ‐foreign key relationship, which of the below is a
possible way to retrieve only the non matching tuples, Full outer join Inner join Left outer join Both A & C B
from the tables, i.e. only return those tuples for which
no subsequent tuple exists in other table?

It replaces all the


What is the significance of Shadowing a method in It makes a method not It makes a method implementation
None C
VB.Net ? inheritable Overridable from high in the
inheritance chain
How many times will the following loop execute :
<pre> int z = 7, sum = 0;
do
{
sum = sum + z; 2 3 4 1 B
z = z+2;
system.out.println(“ ”+z);
}
while (z <=12); </pre>
Execute code regardless of Conclude the
The purpose of the Catch section in an exception handler Execute code only when an Break out of the
whether an exception is execution of the B
is to: exception is thrown. error handler.
thrown application

which of the following is not a method of Debug class assert() flush() open() None of above C

the methods declared with the following modifiers are


public friend protected None of above B
not accessible out side the current vb.net project
Reference types
Dim statement is used to Data associated with a Data associated with
Which of the following is not correct about the value must be
create a variable that reference type is allocated on a value type is B
types and reference types in VB.NET? instantiated after
represents a value type the stack allocated on the stack
declaration
How do you limit implicit type conversion in VB.NET? Option Strict=1 Option Strict On Options Strict True Option Strict off B
An Employee Table Having Data in the sequence
Employee No [numeric],
Employee Name [varchar(100)], <pre> Insert into
<pre> Insert into employee
Emp Date of Birth [date&time], employee '" &
Employee <pre> Insert into employee " <pre> Insert into
Designation [varchar(50)], trim(textbox1) & "',
No="123",Employee & val(textbox1) & ", '" & employee
Department [varchar(50)] '" & val(textbox2) &
Name="ABCD",Emp Date of trim(textbox2) & "','" & "123","ABCD","11/28
to Insert data by using Query "','" & val(textbox3) B
Birth="11/28/2015",Designati textbox3 & "','" & /2015","COMPUTER
displayed in textbox1 = 123 & "','" &
on="COMPUTER trim(textbox4) & "','" & OPERATOR","POLICE
textbox2 = ABCD val(textbox4) & "','"
OPERATOR",Department="PO trim(textbox5) & "' </pre> STATION" </pre>
textbox3 = 11/28/2015 & val(textbox5) & "
LICE STATION" </pre>
textbox4 = COMPUTER OPERATOR </pre>
textbox5 = POLICE STATION
Which Query is Used
<pre> Private Sub Display_Click()

Dim DA As String
DA="SANGITA PANDEY P#ASM‐1#Surya Mandap#123"
astrsplititems = Split(DA, "#") Item(0): SANGITA Item(0): SANGITA
For intX = 0 To UBound(astrsplititems) Item(0): SANGITA PANDEY P PANDEY P# item(1): PANDEY P item(1):
SANGITA PANDEY P ASM‐1
List1.Items.Add "Item(" & intX & "): " & item(1): ASM‐1 item(2): Surya ASM‐1# item(2): #ASM‐1 item(2): A
Surya Mandap 123
astrsplititems(intX) Mandap item(3): 123 Surya Mandap# #Surya Mandap
Next item(3): 123 item(3): #123
Close #1
End Sub
</pre>
The Display Button Click Event Output will be

<pre> Select <pre>Select count(*)


Consider the emp table having columns empno, ename <pre> Select empno, count(*) <pre> Select empno, count(*)
empno, count(*) from emp group by
Which of the following SQL query fetches empno that from emp group by empno from emp where count(*) >2; A
from emp having empno having
occur more than twice in the emp table having count(*) >2; </pre> </pre>
count(*) >2; </pre> count(*) >2; </pre>
How to determine if a variable has not been initialized in
ISNull( ) IsEmpty( ) IsDbNull( ) None of above C
VB.NET?
It replaces all the
What is the significance of Shadowing a method in It makes a method not It makes a method
implementation from high in None of the above A
VB.Net ? inheritable Overridable
the inheritance chain

You have a very large XML file containing around a


million records of a Type which is fairly large in size, you
want to read through each and every record , but the
SAX parser DOM Parser Linear Parser Language Parser A
constraint is that your system does not have sufficient
RAM to load all the values at once, which will be the best
way to parse that XML file

What is the Average case running time of a quicksort


O(n) O(n2) O(n log n) O(n3) C
algorithm, running over a collection of n objects
You are to implement a window token management
system, in the said system citizens will be coming to a
token window to get a token number, afterwards you
have 5 number of processing counters which shall be
processing these citizens one by one, the only issue here
is that the token should be prioritized on the basis of
certain parameters which is to be provided by citizen
such as serious crime, unidentified dead bodies, LinkedList Heap Array Doubly Linked List B
emergency, medico legal cases etc. depending upon the
scenario the token window shall assign a priority as well
to the token, every time a counter clears up the highest
priority token would be picked up, if more than one
token have the same priority then the earlier token
should be picked up. which among the following would
be the best choice for a data structure in this case

NoSQL databases such as MongoDB, Cassandra DB are


being currently used in Social networking and
ecommerce platforms, more and more companies are Indexing and full text
Transaction Isolation and Object Oriented Database Unstructured Data
slowly coming forward with their own version of NoSQL, search features C
Object level Locking Support Store Support
what advantage is offered by this currently hyped Support
product which was not provided by traditional databases
such as Oracle, MySQL etc
REST or representational state transfer is a methodology Random Engine
Representational State Reciprocal Equity State
which is used to create single page application, what based Servlet None of the Above A
Transfer Topography
does the acronymn REST stands for? Technology

<pre> SELECT
Considering the below schema, there is a table COUNT(CRIME_DET
containing the following structure <pre> <pre> SELECT <pre> SELECT AILS_ID) FROM
CRIME_DETAILS(CRIME_DETAILS_ID,FIR_REG_NUM,FIR_ COUNT(CRIME_DETAILS_ID) COUNT(CRIME_DETAILS_ID) CRIME_DETAILS None of the above
DATE,GD_NUM,GD_DATE,COMPLAINANT_ID,PS_CD,DIST FROM CRIME_DETAILS FROM CRIME_DETAILS WHERE WHERE GIST LIKE Queries will correctly
B
RICT_CD,STATE_CD,GIST). </pre> GROUP BY DISTRICT_CD GIST LIKE '%ROBERRY%' '%ROBERRY%' return the required
Which of the below would be a correct query to get the HAVING GIST LIKE GROUP BY DISTRICT_CD; GROUP BY data
District wise count of all the incidents which contain '%ROBERRY%'; </pre> </pre> DISTRICT_CD,PS_C
"ROBERRY" in the GIST column. D HAVING PS_CD
<> NULL; </pre>

You might also like