GeekInterview.com

Sonata Interview Questions

 
Showing Questions 1 - 20 of 65 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Last month of an year (a) january (b) february (c) december (d) november

Asked By: Interview Candidate | Asked On: Sep 6th, 2005

Answered by: vishnu on: Apr 8th, 2013

b) February

Answered by: butapren on: Jan 17th, 2009

December

4 answers


What is the type of the variable b in the following declaration? #define floatptr float* floatptr a,b; a) float b) float pointer c) int d) int pointer

Asked By: Interview Candidate | Asked On: Sep 9th, 2005

Answered by: shivprasad on: Nov 2nd, 2012

b) float pointer

Answered by: jbode on: Oct 29th, 2012

b is a plain float. FLOATPTR a,b; expands to float* a,b;, which is *parsed* as float (*a),b;. The * is bound to the declarator, not the type specifier, so only a is declared as a pointer to float.

8 answers


What would be the output of the following program? main() { int y=128; const int x=y; printf("%d",x); } a) 128 b) garbage value c) error d) 0

Asked By: Interview Candidate | Asked On: Aug 13th, 2005

Answered by: ...uzma... on: Oct 4th, 2012

128

Answered by: Ashok Kumar Orupalli on: Sep 4th, 2012

Answer is a)128. Here we are not modifying const value. We are just assigning value to const variable.

7 answers


All chickens lay eggs (true/false)

False

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: nitish on: Aug 21st, 2012

no,the chicken that i eat doesnt lay eggs!!!!

Answered by: Sandhya.Kishan on: May 12th, 2012

False, roosters dont lay eggs.

2 answers


One dollar is saved in one month. Then how much dollar is saved in one day?

1/30 =0.0333$

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: Sandhya.Kishan on: May 12th, 2012

1/30=0.0333 0.0333$ is saved in one day.

1 answer


We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind() < true/false>

True

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: Sandhya.Kishan on: Mar 28th, 2012

True, we should not be able to read a file after writing in that file without calling the given functions because if the file was open for writing and IF the last operation was an output operation, th...

1 answer


Select the odd one out. (a) 1/4 (b) 1/3 (c) 1/6 (d) 1/18

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: Jassi on: Mar 7th, 2012

Ans is 1/4 because every no. is divided by 3. like 1/3*3=1/3, 1/2*3=1/6, and 1/6*3=1/18.

Answered by: nskarsri@gmail.com on: Jan 16th, 2012

If you consider like that remaining of 1/4 all are 3 factors 1/3,1/6/1/18

8 answers


Is the meaning of client and customer, (a) same (b) contradictory (c) no relation

Asked By: Interview Candidate | Asked On: Aug 12th, 2005

Answered by: silvio on: Feb 10th, 2012

(a) the same

Answered by: hiazar on: Feb 9th, 2010

b) Contradictory

5 answers


In 6 seconds a light flashes once. In one hour how many times it will flash?

601 times

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: ssgk on: Feb 7th, 2012

1hr = 3600sec for 6 sec it flashes 1 time, so for 1hr (3600/6)=600 add the 1st flash also (600+1)= 601

Answered by: hm220887 on: Feb 5th, 2010

1hr. = 3600secs.

so in 1hr. light flashes=(3600/6)+1=601

3 answers


Is the meaning of ingenious and ingenuous, (a) same (b) contradictory (c) no relation

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: aishwarya on: Feb 7th, 2012

CONTRADICTORY because Ingenious means skillful or clever (or) having cunning behaviour. Ingenuous means being frank and straight forward. does not have any cunning behavour.

Answered by: yakkalaravi on: Jul 21st, 2006

no relationy bcz Ingenious : skillful Ingenuous : frank

3 answers


If a train covers 600m in 0.5 seconds, how long it will cover in 10 seconds?

3000m = 3km

Asked By: Interview Candidate | Asked On: Aug 14th, 2005

Answered by: vali on: Feb 3rd, 2012

600 -> 0.5 sec ? -> 10 sec => (10/0.5)*600= 12000m= 12km

Answered by: gibibabu on: Nov 29th, 2011

x = (600 * 10)/0.5 = (600 * 10) / (1/2) = (600 * 10) * 2 = 12000 m

10 answers


Statement: normal children are active; inference: all children are active; (a) true (b) false (c) uncertain

Asked By: Interview Candidate | Asked On: Aug 12th, 2005

Answered by: Aymon on: Jan 16th, 2012

True

Answered by: neelima on: Jan 6th, 2012

(c) Uncertain

6 answers


Cow eats grass, man eats cow, so man eats grass. A. True b. False

False

Asked By: dulal | Asked On: May 10th, 2006

Answered by: syed hannan yunus on: Dec 30th, 2011

The cow eats grass and stores in its stomach, when a man eat cow he eat only the flesh, not the waste of the cow present in its belly.......hence FALSE

Answered by: satya on: Oct 1st, 2011

Answer: A) true Becoz, Man eats Cow and Cow eats Grass. that why we can say that man indirectly eats Grass.

4 answers


Find the antonym of autumn (a) spring (b) winter (c) summer (d) none of the above

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: DEE on: Nov 1st, 2011

SPRING

Answered by: shivani2287 on: Jul 25th, 2011

spring

7 answers


Is the meaning of it's and its, (a) same (b) contradictory (c) no relation

Asked By: Interview Candidate | Asked On: Sep 5th, 2005

Answered by: santoshayyappa on: Sep 8th, 2011

C

Answered by: vijay on: Sep 5th, 2011

It is very simple to solve If you Know English Grammar, It's -> It is Whose pen is this? It's mine. (or) It is mine. where as Its Its color. (here its refers to nonliving Entity.ex: car)

10 answers


What is the output of the following program? #define SQR(x) (x*x) main() { int a,b=3; a= SQR(b+2); printf("%d",a); } a) 25 b) 11 c) error d) garbage value

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: ign407 on: Jul 31st, 2011

answer is 11 a= SQR(b+2) is equivalent to writing a=(3+2*3+2) here arthimetic operator * has high preference so which gives 11. hence, option B is correct.

Answered by: RaviIRule on: Jul 31st, 2011

11

6 answers


Point out the error, if any, in the following program main() { int a=10,b; a>= 5 ? B=100 : b=200; printf("n%d",b); }

Lvalue required in function main(). The second assignment should be written in parenthesis as follows: a>= 5 ? B=100 : (b=200);

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: boxofyuvi on: Dec 18th, 2010

it will print    100

as the conditional operator is true,it will give the above result

1 answer


If the following program (myprog) is run from the command line as myprog 1 2 3, what would be the output? main(int argc, char *argv[]) { int i,j=0; for(i=0;i<argc;i++) j=j+ atoi(argv[i]); printf("%d",j); } a)...

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: komaldhote on: May 28th, 2010

Ans is 6.
atoi is the function which return the decimal or digits in string.

Answered by: Tonni on: Apr 7th, 2007

b) 6

atoi fails on the first element of argv[], being "command.exe", but atoi returns 0 in case of failure.

4 answers


Is the meaning of canvas and canvass, (a) same (b) contradictory (c) no relation

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: sanjana10 on: May 1st, 2010

They have no relation

Answered by: yakkalaravi on: Jul 21st, 2006

Question: Is the meaning of Canvas and Canvass,(a) same (b) contradictory (c) no relationans: No relation.bcz canvas meaning is Cloth whereCancass means ask for vote

4 answers


Statement a: all great men are ridiculous; statement b: I am ridiculous ; inference : I am a great man; (a) true (b) false (c) not clear

Asked By: Interview Candidate | Asked On: Jul 7th, 2005

Answered by: hm220887 on: Feb 5th, 2010

It is not given that all ridiculous men are great men. so ans is NOT CLEAR.

Answered by: siddhanth on: Jun 17th, 2008

false

4 answers


First | Prev | | Next | Last Page

 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.