Searching for "or"

Q:

How many integers, greater than 999 but not greater than 4000, can be formed with the digits 0, 1, 2, 3 and 4, if repetition of digits is allowed?

A) 376 B) 375
C) 500 D) 673
 
Answer & Explanation Answer: A) 376

Explanation:

The smallest number in the series is 1000, a 4-digit number.

 

The largest number in the series is 4000, the only 4-digit number to start with 4. 

 

The left most digit (thousands place) of each of the 4 digit numbers other than 4000 can take one of the 3 values 1 or 2 or 3.

 

The next 3 digits (hundreds, tens and units place) can take any of the 5 values 0 or 1 or 2 or 3 or 4.

 

Hence, there are 3 x 5 x 5 x 5 or 375 numbers from 1000 to 3999.

 

Including 4000, there will be 376 such numbers.

Report Error

View Answer Report Error Discuss

Q:

Parenthesis is never required in Postfix or Prefix expressions

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Parenthesis is not required because the order of the operators in the postfix /prefix expressions determines the actual order of operations in evaluating the expression

Report Error

View Answer Workspace Report Error Discuss

Subject: Database
Job Role: Database Administration

Q:

There are fourteen juniors and twenty-three seniors in the Service Club. The club is to send four representatives to the State Conference. If the members of the club decide to send two juniors and two seniors, how many different groupings are possible ?

A) 23024 B) 24023
C) 23023 D) 25690
 
Answer & Explanation Answer: C) 23023

Explanation:

Choose 2 juniors and 2 seniors.

 

14C2*23C2 = 23023

Report Error

View Answer Report Error Discuss

Q:

It is necessary to sort a file before searching a particular item 

A) True B) False
C) May or may not be true D) None of the above
 
Answer & Explanation Answer: C) May or may not be true

Explanation:

If less work is involved in searching a element than to sort and then extract, then we don’t go for sort

If frequent use of the file is required for the purpose of retrieving specific element, it is more efficient to sort the file.

Thus it depends on situation

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

Q:

Which among the following is the disadvantage of circular list?

A) An info field that contains the information stored in the node B) Can’t traverse the list backward
C) A pointer to the node is given we cannot delete the node D) Both 2 and 3
 
Answer & Explanation Answer: D) Both 2 and 3

Explanation:

Both 2 and 3 are clearly the diadvantages of circular list

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

Q:

How many ways can 10 letters be posted in 5 post boxes, if each of the post boxes can take more than 10 letters ?

A) 5^10 B) 10^5
C) 5P5 D) 5C5
 
Answer & Explanation Answer: A) 5^10

Explanation:

Each of the 10 letters can be posted in any of the 5 boxes.

 

So, the first letter has 5 options, so does the second letter and so on and so forth for all of the 10 letters.

 

i.e. 5*5*5*….*5 (upto 10 times) = 5 ^ 10.

Report Error

View Answer Report Error Discuss

Q:

In how many ways can the letters of the word "PROBLEM" be rearranged to make 7 letter words such that none of the letters repeat?

A) 49 B) 7!
C) 7^7 D) 7^3
 
Answer & Explanation Answer: B) 7!

Explanation:

There are seven positions to be filled.

 

The first position can be filled using any of the 7 letters contained in PROBLEM.

 

The second position can be filled by the remaining 6 letters as the letters should not repeat.

 

The third position can be filled by the remaining 5 letters only and so on.

 

Therefore, the total number of ways of rearranging the 7 letter word = 7*6*5*4*3*2*1 = 7! ways.

Report Error

View Answer Report Error Discuss

Q:

An entity is a thing in the real world with an independent existence.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Entity is a real world object

Report Error

View Answer Workspace Report Error Discuss

Subject: Database
Job Role: Database Administration