Database Administration Questions


Q:

5 Digits Number?

What 5-digit number has the following features:

If we put the numeral 1 at the beginning, we get a number three times smaller than if we put the numeral 1 at the end of the number.

Answer

We can make an equation:


3(100000 + x) = 10x+1


(Why? Well, adding 100000 puts a 1 at the front of a five-digit number, and multiplying by 10 and adding 1 puts a 1 at the end of a number)


Solving this gives:


10x+1 = 3(100000 + x)
10x+1 = 300000 + 3x
10x = 299999 + 3x
7x = 299999
x = 299999/7 = 42857


The answer is 42857 (142857 is three times smaller than 428571).

Report Error

View answer Workspace Report Error Discuss

9 2792
Q:

Which state govt launched 'My City My Budget' initiative?

A) Uttar Pradesh B) Karnataka
C) Telangana D) Andhra Pradesh
 
Answer & Explanation Answer: B) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

4 2788
Q:

Why did charles babbage invent the computer?

Answer

Charles Babbage, the father of computer, invented the first general-purpose computer in an effort to prevent the mathematical errors that were prevalent in the human-calculated mathematics of his time.

Report Error

View answer Workspace Report Error Discuss

4 2782
Q:

The difference between the present ages of Avanthi and Kapil is 9 years. After 7 years, Kapil’s age is twice of Avanthi’s age. What will be Kapil’s age after 4 years?

A) 15 B) 16
C) 18 D) 20
 
Answer & Explanation Answer: A) 15

Explanation:

Let the present ages of Kapil and Avanthi be K & A

Given difference in their ages = K - A = 9 years ...........(1)

After 7 years, K + 7 =  2(A + 7) ......(2)

K + 7 = 2A + 14

K - 2A = 7 ............(3)

K - A = 9 ....(1)

From (1) & (3),

-A = -2

=> A = 2 years

=> K = 9 + 2 = 11 years

 

Required, age of Kapil after 4 years = 11 + 4 = 15 years.

Report Error

View Answer Report Error Discuss

3 2780
Q:

FIFA 2018 World Cup won by

A) Croatia B) Brazil
C) Argentina D) France
 
Answer & Explanation Answer: D) France

Explanation:

France national football team has won the FIFA 2018 - an international football tournament contested by the men's national teams of the member associations of FIFA once every four years. It took place in Russia from 14 June to 15 July 2018.

Report Error

View Answer Report Error Discuss

5 2778
Q:

Undefined reference to 'pthread_create'

How to Fix this error?

Answer

This is a common error while compiling C program in Linux. This error occurs when you are using pthread_create function to create threads in your programs.


To fix this problem ensure following points:
Include header file pthread.h in your program.
Add –lpthread linker flag with compilation command.
1- Include Header file
#include <stdio.h>
#include <pthread.h>
...
...
2- Compile command
gcc main.c -o main -lpthread

Report Error

View answer Workspace Report Error Discuss

0 2777
Q:

I am a box that holds keys without locks, yet they can unlock your soul. What am I?

A) Keyboard B) Keypad
C) Piano D) Key holder
 
Answer & Explanation Answer: C) Piano

Explanation:
Report Error

View Answer Report Error Discuss

5 2774
Q:

What word in the English language is always spelled incorrectly?

A) Schezwan B) Yorker
C) Incorrectly D) Psycologically
 
Answer & Explanation Answer: C) Incorrectly

Explanation:

INCORRECTLY is the only English word which is always spelled incorrectly.

Report Error

View Answer Report Error Discuss

2 2772