SQL SQLObjective type Questions


1.       What does SQL stand for?
a.         Structured Query Language
b.         Structured Question Language
c.         Strong Question Language
Ans: a. Structured Query Language

2.       Which SQL statement is used to extract data from a database?
a.         GET
b.         OPEN
c.         EXTRACT
d.         SELECT
Ans: c. EXTRACT

3.       Which SQL statement is used to update data in a database?
a.         SAVE AS
b.         UPDATE
c.         SAVE
d.         MODIFY
Ans: b. UPDATE

4.       Which SQL statement is used to delete data from a database?
a.         COLLAPSE
b.         DELETE
c.         REMOVE
Ans: b. DELETE

5.       Key to represent relationship between tables is called
a.         Primary key
b.         Secondary Key
c.         Foreign Key
d.         None of these
Ans: C Foreign Key

6.       With SQL, how do you select a column named “FirstName” from a table named “Persons”?
a.         SELECT FirstName FROM Persons
b.         SELECT Persons.FirstName
c.         EXTRACT FirstName FROM Persons
Ans: a. SELECT FirstName FROM Persons
7.       Which of the following is a valid SQL type?
a.         CHARACTER
b.         NUMERIC
c.         FLOAT
d.         All of the above
Ans: D  All of the above

8.       With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” is “Peter”?
a.         SELECT * FROM Persons WHERE FirstName=’Peter’
b.         SELECT [all] FROM Persons WHERE FirstName=’Peter’
c.         SELECT [all] FROM Persons WHERE FirstName LIKE ‘Peter’
d.         SELECT * FROM Persons WHERE FirstName<>‘Peter’
Ans: a. SELECT * FROM Persons WHERE FirstName=’Peter’

9.       With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” starts with an “a”?
a.         SELECT * FROM Persons WHERE FirstName=’%a%’
b.         SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
c.         SELECT * FROM Persons WHERE FirstName=’a’
d.         SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
Ans: d. SELECT * FROM Persons WHERE FirstName LIKE ‘%a’

10.       DML is provided for
a.       Description of logical structure of database.
b.      Addition of new structures in the database system.
c.       Manipulation & processing of database.
d.      Definition of physical structure of database system.

Ans: c  DML is provided for manipulation & processing of database.


Click Below Link for More

SQLObjective type Question and Answers Set 1

Difference between Literal Control and Label Control


Literal Control: It is used to display data; it is lightweight and does not make any formatting techniques. Literal control will render only its text which is assigned in its text property.

For example:
<div>
<asp: Literal ID="Literal1" runat="server" Text="This is a literal control">
</asp: Literal>
</div>

this code render as:
<div> This is a literal control</div> 
Label Control: It is also used for display data, it makes formatting techniques when it render. It will render text within span tag.

For example:  
<div>
<asp: Label ID="Literal1" runat="server" Text="This is a label control">
    </asp: Label>
</div>

this code render as:
<div><span>This is a label control </span></div> 

Neural Network


 An Artificial Neural Network (ANN) is an information processing paradigm that is inspired by the way biological nervous systems, such as the brain, process information. The key element of this paradigm is the novel structure of the information processing system. It is composed of a large number of highly interconnected processing elements (neurons) working in unison to solve specific problems. ANNs, like people, learn by example. An ANN is configured for a specific application, such as pattern recognition or data classification, through a learning process.

"x: [Roman(x)L know(x, Marcus)]® [hate(x ,Caesar) V ("y:$z: hate(y, z) ® think crazy(x ,y))]

1.     Convert the following to clausal form.

"x: [Roman(x)L know(x, Marcus)]® [hate(x ,Caesar) V ("y:$z: hate(y, z) ® think crazy(x ,y))]

Answer: "All Romans who know Marcus either hate Caesar or think that anyone who hates anyone is crazy."

There are 9 simple steps to convert from Predicate logic to clause form.

We will use the following example :
" All Romans who know Marcus either hate Caesar or think that anyone who hates anyone is crazy."

The well formed formula for this statement is :
"x [ Roman(x) and know(x,Marcus)] ® [hate(x,Caesar) Ú ("y($z hate(y,z)) ® thinkcrazy(x,y))]
Lets see each of the covnersion steps in detail :

Well formed formula [ wff] : "x [ Roman(x) and know(x,Marcus)] ® [hate(x,Caesar) Ú ("y($z hate(y,z)) ® think crazy(x,y))]
1. Eliminate ®

We will eliminate implication [ ®] by substituting it with its equivalent.
for e.g. a ® b  =  ~a v b .
Here 'a' and 'b' can be any predicate logic expression.

For the above statement we get :
"x ~[Roman(x) Ù know(x,Marcus)] Ú [hate(x,Caesar) Ú("y~($z hate(y,z)) Ú thinkcrazy(x,y))]
2. Reduce the scope of ~
To reduce the scope we can use 3 rules :
~(~p) = p           
DeMorgans Laws :    ~(aÚb) = ~aÙ~b
                                    ~(aÙb) = ~aÚ~b
Applying this reduction on our example yields :
"x[~Roman(x)Ú~know(x,Marcus)]Ú[hate(x,Caesar)Ú("y"z ~hate(y,z)Úthinkcrazy(x,y))]
3.Change variable names such that, each quantifier has a unique name.
We do this in preparation for the next step. As variables are just dummy names, changing a variable name doesnot affect the truth value of the wff.
Suppose we have
"xP(x) Ú "xQ(x) will be converted to  "x(P(x) Ú "yQ(y) 
4.Move all the quantifiers to the left of the formula without changing their relative order.
As we already have unique names for each quantifier in the previous step, this will not cause a problem.
Performing this on our example we get :
"x"y"z [ ~Roman(x) Ú ~know(x,Marcus)] Ú [ hate(x,Caesar)Ú(~hate(y,z)Úthinkcrazy(x,y))]
5. Eliminate existential quantifiers [ $ ]
We can eliminate the existential quantifier by simply replacing the variable with a reference to a function that produces the desired value.
for eg.
$y President(y) can be transformed into the formula President(S1)
If the existential quantifiers occur within the scope of a universal wuantifier, then the value that satisfies the predicate may depend on the values of the unviersally quantified variables.
For eg..   "x$y fatherof(y,x) will be converted to  "x fatherof( S2(x),x )
6. Drop the Prefix
As we have eliminated all existential quantifiers, all the variables present in the wff are unversally quantified, hence for simplicity we can just drop the prefix, and assume that every variable is universally quantified.
We have form our example :
[ ~Roman(x) Ú ~know(x,Marcus)] Ú [ hate(x,Caesar)Ú(~hate(y,z)Úthinkcrazy(x,y))]
7. Convert into conjunction of disjuncts
As we have no ANDs we will just have to use the associative property to get rid of the brackets.
Incase of ANDs we will need to use the distributive property.
We have :
 ~Roman(x) Ú ~know(x,Marcus) Ú  hate(x,Caesar) Ú ~hate(y,z) Ú thinkcrazy(x,y)
8. Separate each conjunct into a new clause.
As we did not have ANDs in out example, this step is avoided for our example and the final output of the conversion is :
 ~Roman(x) Ú ~know(x,Marcus) Ú  hate(x,Caesar) Ú ~hate(y,z) Ú thinkcrazy(x,y)

Various areas where real time simulation will be used


Real time simulation is the new era of simulation and what are the various areas where real time simulation will be used and what are the various requirements of achieving the real time simulation?

Ans: Real-time Simulation refers to a computer model of a physical system that can execute at the same rate as actual "wall clock" time. In other words, the computer model runs at the same rate as the actual physical system. For example if a tank takes 10 minutes to fill in the real-world, the simulation would take 10 minutes as well.
The Telemedicine and Advanced Technology Research Center and the U.S. Army’s Simulation, Training, and Instrumentation Command (STRICOM) co-hosted a conference at the Morningside Inn, a remote facility ensconced among the rolling pastureland of Frederick County, Maryland, USA.  Actual and potential end users, researchers, and representatives from materiel developers and other government agencies – thirty-three of them, presented their concepts, needs, and challenges about how modeling and simulation should be developed to meet military – and private sector -- medical needs. 

IN the keynote address delivered by Major General John Parker, Commanding General, Medical Research and Materiel Command, MG Parker compared the potential impact of the Medical Modeling & Simulation (MM&S) field to that of the human genome.  By meeting’s end, there was a strong feeling that the MM&S potential to improve healthcare training was higher than originally envisioned.  The skyrocketing growth of the MM&S community of interest since that time has confirmed that belief.

The mission of the Telemedicine and Advanced Technology Research Center is to “explore medical science and engineering technologies ahead of programmed research, leveraging other programs to maximize benefits to military medicine.” One of its major research portfolios is Medical Simulation and Training Technology.  The vision for this portfolio is to facilitate a paradigm shift in medical training, from a subjective mode of skills assessment to a curriculum-aligned, metrics-driven, objective system to assess proficiency of skills -- both cognitive and psychomotor – from the foxhole to the operating room and beyond.