Thursday, August 29

Trick to Find Cube Root of a number without Calculator








Today I 'm gonna share a simple  trick to find the Cube Root of any number (perfect Cubes only) without the need of any calculator..!! A sample C program is also providing to  prove this trick will work correctly for all perfect cubes.!!
Here We Go..!!  :)








Trick Used:

We will follow these steps to find the cube root of a number:

1. Ignore the last 3 digits of the number. Let remaining number be “Part1”.
2. From the above table check which number’s cube is less than or equal to ‘Part1’. It will be left part of our answer. Let it be “L”.
3. Let Right part of our answer be “R”. It will be determined from the above table. For Ex. If last digit of question is 7, then last digit of our answer will be 3
4. Our answer will be L|R.


Example 1
Suppose we want to find the cube root of 21952.
Step 1: Ignore last three digits of 21952. Remaining number left is ’21′.
Step 2: From the above table cube of ’2′ is less than ’21′. Therefore left part (L) of our answer will be ’2′.
Step 3: Since last digit of ‘21952‘ is ‘2‘. Therefore right part (R) of our answer will be ’8′. (Because Last digit of ‘cube of 8′ is 2. see table above.)
Step 4: Our Answer will be L|R. Therefore Answer will be 2|8 = 28.

PROOF

This C program verifies  this trick that it will work correctly for all perfect cubes.!!

#include<stdio.h>

int main()

{
 int cube[]= {0,1,8,27,64,125, 216,343 ,512 ,729 };
 int last_digit[]={0,1,8,7,4,5,6,3,2,9};
 int i=0,j=0, num, part1,part2, ans1, ans2,flag;


flag =1;
for (i=0 ;i<44;i++)
{
num =i*i*i;                  // eg : 21952
part1 =  num/1000;           // 21
for (j=0;j<10;j++)

if (cube[j]>part1)           // 27>21
 break;                      //j=3
  ans1 =j-1;                 // ans1 =2

part2 = num%10;              //2
for (j=0;j<10;j++)
if(part2 == last_digit[j]) break;

ans2 = j;                    //8

ans1= ans1*10 +ans2;         //28

if (i!=ans1)  flag = 0;

}    
 if (flag) printf ("VERIFIED");
else printf ("ERROR OCCURED");

      return 1;
      }




Hope this post was useful for you.!!
Your feedback and suggestion are always welcome..!! Keep in touch.
hugs :)



Friday, July 26

Prasar Bharti Engineering Assistant Exam 2013 Complete Solution




Hello folks,

Here I'm providing the complete questions and solutions for Prasar Bharti Engineering Assistant Exam 2013 Complete Questions and answers held on 21 July 2013.

1.  Identify the leader of Satya Shodhak Samaj:

A. Dayanand Saraswathi

B. Jyotiba Phule

C. Gopal Krishna Gokhale

D. Dadoba Pandurang

2. The highway road  network in Germany is called:

A. Autoroute

B. Autobahn

C. Autostrade

D. Autoway

3. When lactate is used to synthesize glucose/glycogen, the process is called:

A. Gluconeogenesis

B. Glucogenesis

C. Glycogenesis

D. Glyconeogenesis

4. If Gross domestic Product is greater than Gross National Product, it means

A. Indirect taxes are greater than subsidies.

B. subsidies are greater than Indirect taxes.

C. Imports are greater than exports.

D. exports are greater than imports.

5. Marginal cost of nth unit is equal to

A. TCn - TC n-1

B. TCn - TC n+1

C. TCn + TC n-1

D. TCn + TC n+1

6. One of the following statements is wrong:

A. Competition is free markets promotes efficiency in the working of capitalistic economy

B. The main objective of capitalism is to bring about a socialistic pattern of society.

C. Profit motive is the heart of all the institutions of capitalism

D. private ownership of property is indospensible for proper functioning of capitalism

7.The law of demand expresses

A. an opposite relationship between the demand of a commodity and it's supply.

B. a direct supply between income of a  consumer and his demand

C. a positive relationship between the income of a  consumer and his demand

D. an inverse relationship between the quantity demanded and the price of a commodity.

8. A netadditiontoalready existing stock of capital means:

A. positive net Saving

B. improved technology

C. increased production

D. positive net investment

9.  The system of delegated legislation has  enhanced the power of the

A. Bureaucracy

B. Legislature

C. Legislature Committees

D.Council of ministers

10. Martin Luther was related to

A. reformation

B. geographical discovery

C. restoration

D. renaissance

11. The idea of popular Sovereignty was advocated by:

A. Locke

B. Rousseau

C. Austin

D. Hobbes

12. Without prior intimation, any member can raise a question  on any issue in parliament during

A. Zero hour

B.recess Time

C. Closure motion

D. Question Hour

13. Which committee recommended Fundamental duties for the citizens?

A. Swaran singh

B. raj narain

C. Balwant rai

D. Patel

14. The idea of" reverse discrimination" implies

A. Discrimination in decreasing order.

B. equating rich and poor in electoral arena

C.bestowing favored treatment to the hitherto deprived sections

D. establishing institutional checks against arbitrary distinction

15. Chola's local self government had assemblies of _____ types.

A. 4

B. 5

C. 6

D. 3

16.ITCZ refers to __________ Zone

A. inter Trade Center

B. Inter Tropical convergence

C. Inter Transitional Center

D.Inter Transitional convergence

17. Stream Frequency is the

A. Area required to sustain one unit length  of  the channel

B. Number of channels per unit area

C. Channel area per stream

D. Channel length per unit area

18.  Which of the following seas is without  coastline?

A. Sargaso sea

B. Sea of Okhotsk

C. Tasmania sea

D. White sea

19. Identify the leader of Satya Shodhak Samaj

A. Dayanand Saraswathi

B. Jyotiba Phule

C. Gopal Krishna Gokhale

D. Dadoba Pandurang

For complete question set Click here

Thursday, July 25

POSTAL ASSISTANT EXAM 2013 RESULT



       







The List of shortlisted candidates for the Computer Typing / Data Entry (PAPER II) for Kerala Postal Circles ?   CLICK HERE

All The Best..!!

Thursday, May 23

KALQ is gonna outdate QWERTY?



Hai buddies,

 You must be familiar with the term QWERTY. But you ever heard about KALQ?

Simply speaking, KALQ is a new split screen keyboard designed to speed up thumb typing on tablets and large smart phones.


 In this post am gonna say a few words about what is KALQ, why it s needed and a small comparison between QWERTY and KALQ.

Here we go.!

As Alexander the great said ,touchscreen tablets also came ,saw, conquered our hearts. It taught our thumbs to pinch and swipe, slide and scroll. Yes, we are pretty habituated. But still texting through touch screen is sometimes not handy.

I think many will agree with this statement.

Heard  a good news that  Researchers at the University of St Andrews have developed a split-screen keyboard, specifically optimized for thumbs, which they claim can increase typing speeds by more than a third.its KALQ.

Why the name KALQ?

New keyboard KALQ got its name from the letters at the bottom right of the keyboard.

What is new in KALQ?

Keys in two Blocks:
Designed to save your thumbs stretching across the screen and making repeated taps, Kalq splits the keys into two blocks, 16 to the left, 12 to the right. Commonly used letters are clustered together and frequent pairs of letters placed on alternate sides, so each hand does the same amount of work.'

Researchers say "Tests show that after only 10 hours of training, users were able to reach 37 words a minute, compared with the average of 20 words a minute on a qwerty device..!!"


Did you know?

The  mechanism of typewrite, the pioneer,  staggered letters diagonally across the keyboard, rather than arranged in a rectilinear grid, to prevent the levers from running into one another.Qwerty followed the same just for purely mechanical considerations, yet it has endured until today and been unquestioningly translated into the touchscreen arena.

Will Kalq finally have what it takes to revolutionize typing in our increasingly thumbs-only world?? 
Time will give the answer.
Wait n C..!!

Sunday, May 19

Find out what programs/ applications are accessing my internet in windows 7

Hai friends,

In this post I'll explain how to  find out what programs/ applications are accessing your internet in windows 7. Many people want to monitor what are the application currently accessing the internet to curb the unwanted programs from doing so. No need to install any new app or software. We can use there in built in facility available in Windows 7.

Here we Go..!!


(1) Go Start menu.
(2)Type "Resource Monitor"
(3)Click "Resource Monitor" program.
(4) Go to Network tab in window(top side)



Now, you can monitor what are the programs accessing your internet.

Hope this post was useful to you..!!  Comment your experience..!!  see you again..!!

ISRO 2013 Computer Science Questions and Solution




Hi folks,

Back to blogging after a long time.. feeling kinda refreshed and suave..!! :)

This time I'm gonna provide ISRO 2013 Computer Science Questions and Solution. Hope this will be useful to you.


Click here to see ISRO 2013 Computer Science Questions

Click here to see official solution..!!!

How do you feel about the questions in this paper?feel free to comment it here.!!

Wednesday, October 24

ONGC previous years ComputerEngineering questions







1. What is the name of the software that allows us to browse through web pages?

(a) Browser

(b) Mail Client

(c) FTP Client

(d) Messenger

2. What is the address given to a network called?

(a) System Address

(b) SYSID

(c) Process ID

(d) IP Address

3. Which one of the following is a valid DOS command?

(a) LIST *.*

(b) LIST???.???

(c) RECOVER A:

(d) RENAME A:SAMPLE.TXT C:TEST.DOC

4. All system settings in WINDOWS are stored in:

(a) CONTROL.INI

(b) MAIN.INI

(c) SYSTEM.INI

(d) SETTING.INI

5. Which number system is usually followed in a typical 32-bit computer?

(a) 2

(b) 10

(c) 16

(d) 32

6. Which of the following is not an output device:

(a) Printer

(b) Scanner

(c) Flat Screen

(d) Touch Screen

7. A microprocessor is a processor with reduced

(a) instruction set

(b) power requirement

(c) MIPS performance

(d) none of the above

8. Which of the following is not an output of an assembler?

(a) executable program

(b) source listing with line numbers and errors

(c) a symbol table

(d) object program

9. Which layer of OSI model is responsible for routing and flow control:

(a) Presentation

(b) Transport

(c) Network

(d) Data Link

10. Arrays are passed as arguments to a function by

(a) value

(b) reference

(c) both a and b

(d) none of the above

11. Array is:

(a) linear data structure

(b) non-linear structure

(c) none of the above

12. A data structure in which elements are added and removed from only one end, is known as:

(a) Array

(b) Stack

(c) Queue

(d) None of the above

13. A diamond-shaped box in an Entity-Relationship diagram refers to:

(a) Entity

(b) Relationship

(c) Attribute

14. The principle means of identifying entities within an entity set is:

(a) Primary Key

(b) Record

(c) Attribute

(d) Tuple

15. Modem refers to:

(a) Modulator

(b) Modulation

(c) Demodulator

(d) Modulator and Demodulator

16. C language is available for which of the following Operating Systems?

(a) DOS

(b) Windows

(c) Unix

(d) All of the above

17. Which of the following have the fastest access time?

(a) Magnetic Tapes

(b) Magnetic Disks

(c) Semiconductor Memories

(d) Compact Disks

18. DMA stands for:

(a) Direct Memory Allocation

(b) Distinct Memory Allocation

(c) Direct Memory Access

(d) Distinct Memory Access

19. Array subscripts in C always start at:

(a):1

(b) 0

(c) 1

(d) Value provided by user

20. Which type of commands in DOS needs additional files for their execution?

(a) Batch Commands

(b) Internal Commands

(c) External Commands

21. Which of the following statements in regard to Directories is false?

(a) Directories can exist inside directories

(b) The root directory is always at the highest level

(c) Directories with files can be deleted

(d) Directories cannot be renamed

22. It is better to buffer a table when

(a) When a table is read infrequently

(b) When a table is linked to check tables

(c) When a table is read frequently and the data seldom changes

(d) When a single record is to be picked up

23. The Operating System is responsible for:

(a) Controlling peripheral devices such as monitor, printers, disk drives

(b) Provide an interface that allows users to choose programs to run and to manipulate files

(c) Manage users' files on disk

(d) All of the above

24. A company whishes to connect two sites in different parts of the country together. It is decided to use the telephone system. What device should be connected to the fileservers on each site?

(a) Router

(b) Modem

(c) Switch

(d) Hub

25. What is a file server?

(a) A computer that performs a service for other computers

(b) A computer that controls the printers on the network

(c) A computer that stores files that are created by network users

26. What is the Protocol used for the Internet?

(a) IPX/SPX

(b) NetBIOS/NetBEUI

(c) CDMA/CA

(d) TCP/IP

27. Which one of the following is not a Normal Forms (Normalization) rule with regards to the Relational Model?

(a) All fields within a table must relate to or directly describe the Primary Key.

(b) Repeating Groups must be eliminated from tables.

(c) Fields that can contain non-numeric data are to be removed and placed within their own tables with an associated Primary Key.

(d) Redundant data is to be eliminated by placing the offending fields in another table.

28. Choose the answer which best describes the term Primary Key:

(a) The Primary Key is a field that contains data that can be duplicated.

(b) The Primary Key is a field that contains data that is unique.

(c) The Primary Key is a field that is never associated with any field in other tables.

(d) The Primary Key field is a concept used only in Microsoft Access.

29. Which technique is used to reduce the size of a file:

(a) Compression

(b) Decompression

(c) Encryption

(d) Decryption

30. BIOS stands for

(a) Binary Input Output Set

(b) Binary Input Output System

(c) Basic Input Output Set

(d) Basic Input Output System

31. A floppy disk is consisting of 40 tracks, each track contains 100 sectors, and the capacity of a sector is 512 bytes, what is the approx. size of that disk?

(a) 1 MB

(b) 2 MB

(c) 4 MB

(d) 8 MB

32. What is the binary equivalent of a decimal number 68:

(a) 1000100

(b) 1100100

(c) 1000010

(d) 1000001

33. Assembly language to machine language translation is:

(a) One-to-One

(b) One-to-Many

(c) Many-to-One

(d) Many-to-Many

34. Maximum size of IP address is:

(a) 12 bits

(b) 24 bits

(c) 32 bits

(d) 48 bits

35. RAM stands for

(a) Read Access Memory

(b) Read After Memory

(c) Random Access Memory

(d) Random After Memory

36. What is the final value of sum?

main ()

{

int sum=1;

for(;sum<=9;)

printf(%d\n, ++sum);

}

(a) 9

(b) 10

(c) 11

(d) none of the above

37. If c is a variable initialized to 1, how many times the following loop be executed:

while(c>0 && c<60)

{

c++;

}

(a) 59

(b) 60

(c) 61

(d) none of the above

38. The declaration void fun(int) indicates the fun is a function which:

(a) has no arguments

(b) returns nothing

(c) both a and b

(d) none of the above

39. Out of the following which is not valid network topology:

(a) Bus

(b) Star

(c) Circle

(d) Tree

40. The overall logical structure of a database can be expressed graphically by:

(a) Data Flow Diagram

(b) Flow Chart

(c) Directed Graph

(d) Entity-Relationship Diagram

41. CARRY, in a half-adder, can be obtained using:

(a) OR gate

(b) AND gate

(c) EX-OR gate

(d) EX-AND gate

42. The memory that requires refreshing of data is:

(a) SROM

(b) DROM

(c) SRAM

(d) DRAM

43. The minimum number of bits required to represent numbers in the range:28 to +31 is-

(a) 5

(b) 6

(c) 7

(d) 8

44. Which bus carries information between processors and peripherals?

(a) Data bus

(b) Control bus

(c) Address bus

(d) Information bus

45. Which part of the computer perform arithmetic calculations?

(a) Control unit

(b) Registers

(c) ALU

(d) CPU

46. A gigabyte represents:

(a) 1 billion bytes

(b) 1000 kilobytes

(c) 230 bytes

(d) 10 megabytes

47. The minimum number of bits required to store the hexadecimal number FF is:

(a) 2

(b) 4

(c) 8

(d) 16

48. Cache memory enhances:

(a) memory capacity

(b) memory access time

(c) secondary storage capacity

(d) secondary storage access time

49. A UPS:

(a) increases the storage capacity of a computer system

(b) increases the processor speed

(c) provides backup power in the event of a power cut\

(d) none of the above

50. An RDBMS is a:

(a) Remote DBMS

(b) Relative DBMS

(c) Reliable DBMS

(d) Relational DBMS