C Objective Tricky Questions for Interview Preparations
-
Upload
extremepandit -
Category
Documents
-
view
7 -
download
1
description
Transcript of C Objective Tricky Questions for Interview Preparations
-
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
int main()
{
int a=20;
int b;
b = a;
b=25;
printf("%d",b);
return 0;
}
STUDENT DUNIYATechnology B log Where You Find Web Development T ips 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.
ExplanationQuestion 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 Upload fi le more than 2MB of size in PHP
How to remove .php and .html fi le extension through .htaccess
Allowed Memory Size Exhausted
Check if two binary trees are mirror image of each other
How to find directory on Ubuntu operating system
Recent Comments
obat pembesar alat vital on How to Install Disqus comment system on blogger/blogspot
Guest on Deny access of fi les and folders through .htaccess
Rana Nile on Install,Uninstall/Remove,Update Package through apt-get in Ubuntu
How to Enable .htaccess File in Apache2 on Deny access of fi les and folders through .htaccess
How to Enable .htaccess File in Apache2 on URL Rewriting Create Seo-Friendly 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.