Sie sind auf Seite 1von 7

7/28/2014 C Objective Tricky Questions for Interview Preparations

http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 1/7
Home Linux/Ubuntu WordPress Articles PHP MongoDB mysql Javascript Contact Us
= Menu =
MySql Interview Questions Write a Program to Find/Print the Middle Element of
Linked List
Question 1
C Objective Tricky Questions for Interview Preparations
By admin | C, ObjectiveQuestions
These objective questions test your basic understanding of C language and its concept. The questions i
included is a short piece of c code, every question has four options, you have to choose the correct answer.
Interview Objective Question
C Objective Interview Questions
What's the output of the following code
#include <stdio.h>
int main()
{
int a=20;
int b;
b = a;
b=25;
printf("%d",b);
return 0;
}
STUDENT DUNIYA
Technol ogy Bl og Where You Fi nd Web Devel opment Ti ps and Tri cks
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 2/7
20
25
0
None
Question 2
A
65
Both
None
Question 3
A
B
C
D
Output of following code will be.
int main(){
char c='A';
printf("%d",c);
}
A
B
C
D
Choose the correct answer.
int main()
{
int a[3]={11,5};
printf("%d,%d",a[1],a[2]);
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 3/7
5, 0
11,5
5,11
None
Question 4
1,2
2,1
1,1
2,2
Question 5
return 0;
}
A
B
C
D
int main()
{
int a=0;
printf("%d,%d",a++,++a);
return 0;
}
A
B
C
D
int main()
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 4/7
7,5
5,7
7,7
5,1
{
int a=5,b=6;
a = a++;
b = ++b;

printf("%d,%d",a,b);
return 0;
}
A
B
C
D
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 5 questions to complete.
Explanation
Question 2
Every character has some ASCII value.
printf(%d,c);
Here we use %d, so it will print the ASCII value of character.
For reference check the code
Question 3
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 5/7
About admin
I am technology lover who loves to keep updated with latest technology. My
interest field is Web Development.
View all posts by admin
MySql Interview Questions Write a Program to Find/Print the Middle Element of
Linked List
int a[3]={11,5};
So a[0] = 11 , a[1]=5
No value is for a[2] so 0 is assigned.
Question 5
Initially we assign a = 5 and b=6
a = a++;
In post increment,first value is assigned and then it will be incremented so 5 is assigned
b = ++b;
In pre increment, firs value is incremented and then assigned. So 7 is assigned.
Related Posts:
1. PHP Multiple Type (MCQ) Objective Interview Questions
2. MySql Interview Questions
3. Write a C/C++ Program to Print the output without using semicolon
4. Find duplicate element in an array with minimum time complexity
5. Reset Auto-Increment In MySql
6. Program to Swap Two Numbers Without Using Third Variable
Tagged InterviewQuestions, MCQ, Objective Questions. Bookmark the permalink.
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 6/7
Search
Subscribe Latest Posts
Popular Topics
Sql Injection
PHP
MongoDB
.htaccess
Smarty
Programming
Laravel
Composer
Install,Uninstall/Remove,Update
Package through apt-get in Ubuntu
1 comment 4 months ago
Rana Nile thanks for sharing such helpful
work with us.
What is SQL Injection and How to
Prevent SQL Injection
1 comment 11 months ago
Thuyen Tran good
Tools to Check Sql Injection
Vulnerability
2 comments 11 months ago
rajkumar9788 Thanks James
Cannot Modify Header Information,
Header Already Sent Error
3 comments a year ago
Emilio Gort Serio when you use ob_start
you are hiding the problem not solving it.
ALSO ON STUDENT DUNIYA
0 Comments Student Duniya Login
Sort by Best Share
Start the discussion
Be the first to comment.
WHAT'S THIS?
Subscribe Add Disqus to your site
Favorite
7/28/2014 C Objective Tricky Questions for Interview Preparations
http://studentduniya.in/c-objective-tricky-questions-interview-preparations/ 7/7
WordPress
How To
Blogging
Memcache
Javascript
Cookie
Student Duniya
174 people like Student Duniya.
Like
Recommendation
How to Update/upgrade Ubuntu 12.04 to Ubuntu 14.04 LTS
How to Upl oad fi l e more than 2MB of si ze i n PHP
How to remove .php and .html fi l e extensi on through .htaccess
Al l owed Memory Si ze Exhausted
Check i f two bi nary trees are mi rror i mage of each other
How to fi nd di rectory on Ubuntu operati ng system
Recent Comments
obat pembesar alat vital on How to Instal l Di squs comment system on bl ogger/bl ogspot
Guest on Deny access of fi l es and fol ders through .htaccess
Rana Nile on Instal l ,Uni nstal l /Remove,Update Package through apt-get i n Ubuntu
How to Enabl e .htaccess Fi l e i n Apache2 on Deny access of fi l es and fol ders through .htaccess
How to Enabl e .htaccess Fi l e i n Apache2 on URL Rewri ti ng Create Seo-Fri endl y URL Through .htaccess
Copyright 2014 - StudentDuniya.in - All Rights Reserved.
Home Linux/Ubuntu WordPress Articles PHP MongoDB mysql Javascript Contact Us
Student Duniya | Powered by Mantra & WordPress.

Das könnte Ihnen auch gefallen