RSS Subscribe

This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Sunday, 26 June 2011

C Sample Technical Questions

Here are some sample C sums for a successful job interviewing.

 
 
 1.main() 
{ 
static int var = 6;
printf("%d ",var--); 
if(var) main();
}

Answer:6 5 4 3 2 1
Explanation:
When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively.
  
 2.main()
{ 
float me = 2.1; 
double you = 2.1; 
if(me==you) 
printf(" I am a boy"); 
else printfI ("I am a girl);
}Answer: I am a girl
Explanation: For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.
 
  
 3.main()
{
char stmt[]="Hello World";
display(stmt);
}
void display(char *stmt)
{
printf("%s",stmt);
}
Answer: 
Compiler Error : Type mismatch in redeclaration of function display

Explanation : 
In third line, when the function display is encountered, the compiler doesn't know anything about the function display. It assumes the arguments and return types to be integers, (which is the default type). When it sees the actual function display, the arguments and type contradicts with what it has assumed previously. Hence a compile time error occurs
  
 4.

main()
{ 
int i=-1,j=-1,k=0,l=2,m; 
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

Answer: 0 0 1 3 1 

Explanation :
Logical operations always give a result of 1 or 0 . And also the logical AND (&&) operator has higher priority over the logical OR (||) operator. So the expression 'i++ && j++ && k++' is executed first. The result of this expression is 0 (-1 && -1 && 0 = 0). Now the expression is 0 || 2 which evaluates to 1 (because OR operator always gives 1 except for '0 || 0' combination- for which it gives 0). So the value of m is 1. The values of other variables are also incremented by 1.
  
 6.#include‹stdio.h› 
#define a 20 main() 
{
#define a 10 printf("%d",a); 
} 

Answer: 10 

Explanation: 
The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.
  
 7.#include‹stdio.h›
main()
{
char s[]={'a','b','c','\n','c','\0'};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
}

Answer: 77

Explanation:
p is pointing to character '\n'. str1 is pointing to character 'a' ++*p. "p is pointing to '\n' and that is incremented by one." the ASCII value of '\n' is 10, which is then incremented to 11. The value of ++*p is 11. ++*str1, str1 is pointing to 'a' that is incremented by 1 and it becomes 'b'. ASCII value of 'b' is 98. 
Now performing (11 + 98 - 32), we get 77("M"); 
So we get the output 77 :: "M" (Ascii is 77). 
  
 8.#define clrscr() 100
main()
{
clrscr();
printf("%d\n",clrscr());
}

Answer: 100

Explanation: 
Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input program to compiler looks like this : 
main()
{
100;
printf("%d\n",100);
}

Note: 
100; is an executable statement but with no action. So it doesn't give any problem
  
9.main()
{
char *p;
p="Welcome";
printf("%c\n",*&*p);
}
Answer: 
W 
Explanation: 
* is a dereference operator & is a reference operator. They can be applied any number of times provided it is meaningful. Here p points to the first character in the string "Welcome". *p dereferences it and so its value is W. Again & references it to an address and * dereferences it to the value W.
  
10.void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer: Compiler Error


Explanation: 
The expression i+++++i is parsed as i ++ ++ + i which is an illegal combination of operators.
  
11.#include‹stdio.h›
main()
{
struct xx
{
int x;
struct yy
{
char s;
struct xx *p;
};
struct yy *q;
};
}
Answer:Compiler Error


Explanation: 
in the end of nested structure yy a member have to be declared
  
12.main()
{
int i=_l_abc(10);
printf("%d\n",--i);
}
int _l_abc(int i)
{
return(i++);
}

Answer: 9


Explanation: 
return(i++) it will first return i and then increments. i.e. 10 will be returned.
  
13.main()
{
int i=3;
printf("%d",i=++i ==4);
}
Answer: 
1
Explanation: 
The expression can be treated as i = (++i==4), because == is of higher precedence than = operator. In the inner expression, ++i is equal to 4 yielding true(1). Hence the result.
  
14.void main()
{
int i;
char a[]="\0";
if(printf("%s\n",a))
printf("Good Evening \n");
else
printf("Good Morning\n");
}

Answer: Good Evening

Explanation: 
Printf will return how many characters does it print. Hence printing a null character returns 1 which makes the if statement true, thus "Good Evening" is printed.
  
15.main()
{
char *p;
int *q;
long *r;
p=q=r=0;
p++;
q++;
r++;
printf("%p...%p...%p",p,q,r);
}

Answer: 0001...0002...0004

Explanation: 
++ operator when applied to pointers increments address according to their corresponding data-types.

Tuesday, 21 June 2011

Java freshers for J2EE

We are looking for few freshers with knowledge in core Java for J2EE trainee position. Entry is through interview, written test in Java and fee payment (free option available for candidates with degree). Training in JSP, Servlets, Java Script, HTML, XML, Struts and Ajax. After training you will be in main stream ERP development team.



Lakshmanan
044-23745221
Nelson Manickam Road, Chennai
http://www.noveleye.com  

Freshers opening at Cygnet Informatics

Cygnet wants developer in .net / java / j2ee with sound knowledge.

cell no : 9840588738
Landline no: 044-42121617
Address : 54/2 Raja Bather Street,T.Nagar,Chennai-17
Website Address: http://www.cygnet3.com  

Immediate Opening for JAVA freshers

ear Professionals,

It is our great pleasure to inform you that your Resume has been short listed for the position of �JAVA DEVELOPER�. You will be selected according to your Technical skill.

Qualification: B.E / B.Tech / B.Sc / BCA / M.Sc / MCA/ Diploma 
Experience: 0 to 1 year

Desired Skill:

  • Good Knowledge in Java.
  • Basics in Jsp, Servlets, Struts.
  • Strong knowledge in Oracle.
  • Good Communication & analytical skills.

Selection Procedure:

            1. Direct Technical round.
            2. HR interview.


Your interview will be held at our corporate office on � 28-05-2011 to 04-06-2011 at 10.00 am to 1.00 pm in Chennai.

VENUE:

VERITAS INFOSYSTEMS (WWW.VERITASINFOSYS.COM)

1111/5 P.H.ROAD
SELVAROJA BUILDING
KOYAMBEDU
CHENNAI-107
[LAND MARK: OPP.TO SHAN ROYAL HOTEL /OPP.TO GURUDEV MOTORS]

REQUIRED DOCUMENTS BY THE COMPANY HRD.

1) Updated Resume.

2) Photo-copies of Qualification Documents.

SBI recruitment 2011 Jobs vacancy

SBI recruitment 2011 details has been published in the latest advertisement on www.sbi.co.in. The well educated Indian citizens are invited for the various Probationary Officers posts on different positions.


The State Bank of India has declared the detailed information for the various posts given below and invited Indian candidates to send their full filled applications before 31-5-2011 as per requirement details published din SBI recruitment 2011.

  • Probationary Officers
  • Total:- 1000 posts
  • Pay Scale:- Rs.27800 /month(approx.)
  • Age Limit:- 21 - 30 years as on 1.05.2011
  • Qualification:- Graduation degree in any discipline
  • Online registration:- 18.05.2011 to 09.06.2011
  • Written test:- 24-07-2011

Send your applications before closing date 31-5-2011 by official address

Please check all details in advertisement for SBI recruitment 2011 Jobs vacancy

Central Bank of India recruitment 2011 - Apply Now

Central Bank of India, a leading Public Sector Bank has announced recruitment notification for Specialist Category Officers. Persons who are eligible and desirous for Central Bank of India Recruitment 2011 submit their applications in the given format (Annexure A). Last date for receipt of application is 29.03.2011. Central Bank of India will conduct personal interview for following posts:

Central Bank of India Recruitment 2011 Details
Post Code
Name of the Post
-Grade/Scale-Type
of Employment
Posts
01
Senior Manager (Detective)
Scale III (or) on Contract
2
02
Defence Banking Advisor (Navy)
On Contract
1
03
Fraud Investigation Officer
On Contract
1
04
Business Development Officer
On Contract
2
05
Faculty Member
On Contract
3
06
Architect
Scale II
2
07
Civil Engineer
Scale II
4
08
Electrical Engineer
Scale II
2
09
Librarian
Scale II
1

Selection Procedure: The eligible candidates will be called for personal interview and the decision of the bank in this regard shall be final

Application fee: Application fee is Rs.1000/- payable for each post separately by way of Demand Draft drawn on any Nationalized/Scheduled Bank drawn in favour of “Central Bank of India- Recruitment of Specialist Officers-2010-11” and payable at Mumbai .Fees once deposited will not be refunded.
Submission of application: Eligible candidates have to submit their applications in the given format (Annexure A). Last date for receipt of application is 29.03.2011. No applications shall be entertained beyond the stipulated date. Incomplete applications will be rejected. Completed application should be sent in a closed envelope, Superscribing “Application for the
post of ----------------------------------”
To,
General Manager- HRD,
Central Bank of India,
Chander Mukhi, 17th floor,
Nariman Point
Mumbai- 400 021

Persons who are going to apply for Central Bank of India Recruitment 2011 project, please read the complete advertisement with eligibility and all term and conditions, carefully before going to apply

Sunday, 5 June 2011

Senior Dotnet Developer (3 -6 year -Bangalore)


Infinite Computer Solutions (India) Limited is a global service provider of Infrastructure Management, Intellectual Property (IP) leveraged solutions and IT services, with focus on Telecom, Media, Manufacturing and Healthcare Industries. Our services span from Application Management Outsourcing, Packaged Application Services, Independent Validation & Verification, Product Development & Support, to higher value-added offerings, including, Managed Platform and Product Engineering Services.

Our telecommunication-specific services and solutions to telecom Original Equipment Manufacturers (OEMs) and Independent Software Vendors (ISVs) include Product-engineering and lifecycle management services relating to telecom equipment used in areas such as transmission, switching, access and Operational Support Systems (OSS), in both legacy and Next Generation Networks (NGNs).
With our experience in executing several large mission-critical IT and Infrastructure projects for our clients in the telecom domain, and our acquisition in 2007 of a telecom-focused company, Comnet International Co, USA; we are now one of the leading providers of telecom- specific offerings to service providers, OEMs and ISVs in the Telecom vertical, globally.
We were successfully assessed for CMMi L5 in April, 2004 and CMMi v 1.2 L3 in Q2 of 2008-2009 in keeping with our journey of continuous improvement and continued focus on quality to deliver enhanced value to our customers. We are a registered Software Technology Parks of India (STPI) entity and provide technology services to client specific requirements. These services are performed onsite / onshore and off shore through our various offices and 100% subsidiaries spread over several countries across three continents.
Our integrated network of delivery facilities across India and the US is complemented by onsite, offsite and near-shore capabilities in major international markets. We have offices across the globe, including multiple locations in the US, UK, India, China, Malaysia, Singapore and Australia.
Our world-class development environment effectively meets the needs of our global customers. We currently have four delivery centers in India – including a company-owned facility in Bangalore and leased facilities in Hyderabad, Chennai and Gurgaon.
DesignationVB 6.0, VB.Net, ASP.Net, SQL Server - Urgent Requirement
Job DescriptionWe are looking for a excellent resource for a senior dotnet developer position.

Position: Senior Dotnet Developer
Experience: 3.6 Years - 6Years
Location: Bangalore
Desired ProfileRequired Skills:

* Should have good experience in ASP.Net, VB.Net, Visual Basic 6.0 on web / windows application.

* Should have good experience in SQL Server 2000/2005.

* Should have excellent communication, presentation and interpersonal skills.
* Preferably from technical background.
Experience4 - 6 Years
Industry TypeIT-Software/ Software Services
RoleSoftware Developer
Functional AreaApplication Programming, Maintenance
EducationUG - Any Graduate - Any Specialization
PG - Any PG Course - Any Specialization
LocationBengaluru/Bangalore
Keywordsvb 6.0, vb6, vb - 6, visualbasic 6.0, visualbasic6, .net, vb.net, asp.net, sql, sqlserver
ContactHr
Infinite Computer Solutions (India) Ltd
Infinite Computer Solution Plot No 157, EPIP
Zone, 2nd Phase, whitefield
BANGALORE,Karnataka,India 560066
Telephone91-80-08041930000
EmailAmrut.Chilla@infinite.com
Websitehttp://www.infinite.com
Job Posted03 Jun

Twitter Delicious Facebook Digg Stumbleupon Favorites More