Database Administration Questions


Q:

A source program is

A) a program to be translated into machine language B) a program written in a machine language
C) a machine language translation of a program D) All of the above
 
Answer & Explanation Answer: A) a program to be translated into machine language

Explanation:

A_source_program_is1563521242.png image

A source program is is a text file that contains instructions or a program written in a language other than machine code, typically a high-level language.

Report Error

View Answer Report Error Discuss

9 2250
Q:

You can drop me from the longest building & I will be LIVE, but if you drop me in the water I DIE.

WHO AM I?

Answer

A Paper.

Report Error

View answer Workspace Report Error Discuss

6 2247
Q:

An increase in the quantity demanded means that

A) The demand curve shifted to right B) Price of the product has declined
C) Increase in consumer income D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:
Report Error

View Answer Report Error Discuss

1 2233
Q:

What is Primary Key in DBMS?

Answer

A primary key is a special relational database table column or combination of columns designated to uniquely identify all table records. That is, A primary key is a column or set of columns in a table that uniquely identifies tuples (rows) in that table.


A primary key, also called a Primary Keyword.



Main Features Primary key are ::


It must contain a unique value for each row of data.


It cannot contain null values.

Report Error

View answer Workspace Report Error Discuss

10 2231
Q:

The multi part identifier could not be bound is

Answer

One of the most common errors that you might face in join statements is 


 


Server: Msg 4104, Level 16, State 1, Line 1
The multi-part identifier could not be bound.


 


A multipart identifier is any description of a field or table that contains multiple parts - for instance MyTable.SomeRow - if it can't be bound that means there's something wrong with it - either you've got a simple typo, or a confusion between table and column. It can also be caused by using reserved words in your table or field names and not surrounding them with [].


 


The main reason for this error is that the source table cannot be found, for example if you have statement such as Table1.OrderDate, and then if you get error above, this means that Table1 cannot be found in the query. Sometimes you can see that source table exists in the query, but T-SQL cannot understand it, especially when you write join statements.

Report Error

View answer Workspace Report Error Discuss

0 2229
Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2229
Q:

Which is a reserved word in the java programming language?

A) Variable B) Identifier
C) Keyword D) Main
 
Answer & Explanation Answer: C) Keyword

Explanation:

Reserved words are words that cannot be used as object or variable names in a Java program because they're already used by the syntax of the Java programming language.

Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names).

If a reserved word was used as a variable you would get an error or unexpected result.

 

Examples : Int, Long, Abstract, Class, Break, Catch, Case, Public, Static, Void,...

 

 

Report Error

View Answer Report Error Discuss

1 2213
Q:

A practice to learn something

a_practice_to_learn_something1551439875.jpg image

A) Poem B) Summary
C) Lesson D) Introduction
 
Answer & Explanation Answer: C) Lesson

Explanation:

A practice to learn something is a Lesson.

Report Error

View Answer Report Error Discuss

4 2212