GeekInterview.com
Series: Subject: Topic:

Languages Interview Questions

 
Sub Categories (+ View)
Subject Name
Questions
Answers
Last updated
563
2118
May
21st,
2012
258
1140
May
25th,
2012
Showing Questions 1 - 20 of 193 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

C language

Asked By: yekkalarajesh | Asked On: May 25th, 2012

Write a function to find how many binary 1s nd 0s present in a number

What is the output of the program?

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

Main() { char a='123' printf ("%c n",a); return 0; } a. Ascii value of 121 b. 1 c. 3 d. None of these

Answered by: akshay on: May 3rd, 2012

The answer is either 3 or its ascii value 51 depending on the compiler.

Answered by: leeyaitb2w on: Jun 30th, 2010

ANSWER:(A)ASCII Value of 123

Wipro technical interview

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

Main() { int a[]={0 1 2 3}; int *b; b=&a[2]; printf("%d",b[-1]); } technical interview

Answered by: on: May 1st, 2012

6

Answered by: dhirajsharma on: Apr 25th, 2012

The answer is 1. Negative subscripts are definitely allowed in C and C++.

full form of url? a. Universal resource locator b. Uniform resource locator c. None of these d. Unidentified random locator.

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

Answered by: mahamad on: Apr 15th, 2012

Its both because in some books it is
1:Uniform Resource Locator and in some other books its 2:Universal Resource Locator because they both
suggesting that the location of the resource at Universally and Uniformly hope you have got right thing from this answer

Answered by: talvinderdeep on: Mar 21st, 2012

A. universal resource locator

what is the output? int i=7 printf("%dn",i++*i++);

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

Answered by: mahamad on: Apr 15th, 2012

Its 49n because compiler starts execution from right to left then it founds that ++i (remember,this is compiler execution) means it will take just 7 simply then again it founds that ++i (remember,this...

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

Since i=7
hence i++*i++=7+1*i++
=8*7++
=56++
=57
Since it is printf("%dn",i++*i++)
The output is 57n

Explain applet life cycle?

Asked By: rajesh.manem | Asked On: Jul 10th, 2007

Answered by: mahamad on: Apr 15th, 2012

Applet life cycle: applet life cycle 1.init() [born of applet] 2.start() [start of applet] ...

Answered by: soujanya on: Feb 16th, 2012

An applet can react to major events in the following ways:

It can initialize itself.
It can start running.
It can stop running.
It can perform a final cleanup, in preparation for being unloaded.

what is the specialty of .Net? a. Language independence b. Platform independent c. Ide independent d. None of these

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

a

Answered by: on: Feb 3rd, 2012

A. Language Independence

What is l value r value and I value

Asked By: Tanuja Jaiswal | Asked On: Jan 28th, 2012

Answered by: sakshi on: Feb 1st, 2012

l value refers to memory location and r value is known as read values.

l values are present on the left side of = sign and r value are present on the right side of = sign

int j;
j=6;

here j is l value and 6 is r value..as we cannot write 6=j,hence l value is required.

what is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);

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

Answered by: mathankumar on: Feb 1st, 2012

"n=m m=1+n"

Code
  1. "n=m
  2. m=1+n"

Answered by: Gopal27 on: Jan 28th, 2012

Error bcoz there is no initilization of numeric value.

which is a command interpreter? a. Shell b. Kernel c. Both a and b d. None of these

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

Answered by: sai latha on: Jan 26th, 2012

shell

Answered by: kapil kumar bhargaw on: Jan 25th, 2012

A. shell

cdrom access is a. Random b. Semi random c. Sequential d. None of these

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

Answered by: Poongodi.M on: Jan 23rd, 2012

A. Random

Answered by: Siva Karthik on: Jan 21st, 2012

A. Random

What function will read a specified number of elements from a file ?

Asked By: Interview Candidate | Asked On: May 31st, 2005

A) fread() b) readfile() c) fileread() d) gets()

Answered by: jklkl on: Jan 3rd, 2012

fread()

Answered by: pushpendragzb on: Nov 30th, 2010

readfile()

Initializing micro computer

Asked By: myhome | Asked On: Aug 22nd, 2008

What is the name given to the process of initializing a micro computer with its os?

Answered by: jothi on: Dec 29th, 2011

It is known as Kenbak.

Answered by: deepika.guvvala on: Jan 24th, 2011

Booting

Waveguide

Asked By: chorkat | Asked On: Jul 17th, 2009

Why does wave length increase when waves entering a waveguide?

Answered by: srikanth kala on: Dec 6th, 2011

Waves in open space propagate in all directions, as spherical waves. In this way they lose their power proportionally to the square of the distance; that is, at a distance R from the source, the power...

virtual memory size depends on a. Address lines b. Data bus c. Disc space d. Both a and b e. None of these

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

Answered by: Abir on: Nov 25th, 2011

This question answer is (a).

Answered by: hari on: Dec 5th, 2005

C

Virtual memory depends on the Disc Space.

main() { char dummy[20]; scanf("%[^a]",dummy); printf("%s", dummy); } what will it do? a. Error b. Take characters till ctrl z is pressed c. Take up to 19 characters d. None of these

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

Answered by: SAPAN KUMAR DAS on: Oct 10th, 2011

the ans will be none of these.
because scanf("%[^a]",dummy); means it will store characters in dummy upto 1st a is encountered in the input

buffer stdin .

so it will show output to the string upto 1st 'a';

eg. if we will enter "hello sapan"
it will show :- hello s

Answered by: Sandeep on: Sep 18th, 2011

it will print the characters till 'a' encounter..

If you will write scanf("%[^g]",dummy);
then
It will print all the characters till the 'g' encounter.

What is the part of compiler that keeps track of names and their attributes? A) compile table b)symbol table c)table d) logical table

Asked By: wproed | Asked On: Sep 22nd, 2006

Answered by: SRINIVAS REDDY on: Sep 16th, 2011

it's the Symbol Table

Answered by: vivekgupta88 on: Dec 18th, 2009

B) Symbol Table

How can we reverse a string using bourne shell scripting?

Asked By: Nehashri | Asked On: Feb 2nd, 2007

Answered by: angel421 on: Sep 9th, 2011

[~/temp]$ cat deepak.sh #! /bin/sh # reverse a string [[ -z "$@" ]] && STR=" a b c d e f g h i j k l m n o p q r s t u v w x y z " || STR="$@" len=${#STR} REV="" for (( i=$len ; i>0 ; i-- )) do ...

Unary and binary operator

Asked By: Kamande Joseph | Asked On: Oct 27th, 2009

Explain the concept of unary and binary operator overloading giving suitable examples.

Answered by: angel421 on: Sep 9th, 2011

Please guys, check your answer before, I saw many of them wrong on this website. The above "binary operators" description should say this: (++ and -- are Unary by the way....) The binary operators ...

Answered by: balasubramaniyank on: Jul 19th, 2011

Unary operator is used to operate two operands. ex +,-,*. Mostly there are will be used only for Arithmatic operations.

Binary operators are used to operate the single operand values ex.++,--,==

which key in any windows screen is used to invoke file menu?

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

alt+f

Answered by: vin18 on: May 23rd, 2011

alt+f

Answered by: lovely on: Jun 22nd, 2006

file menu can be accssd by F10 OR ALT+F

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

C Interview Questions

C++ Interview Questions

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".