Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Microservices using .NET Core
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
DevOps Expert
AZ-400: Microsoft Azure DevOps
Docker by Sandeep Soni
Kubernetes by Sandeep Soni
Docker & Kubernetes by Rahul Rampurkar
IaC Using Terraform
Powershell
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
Others
Python Programming
C and Data Structure
Core Java
OOPs and C++
Advance Java
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
Variables and Datatypes
Interview Questions and Answer
1. What is a Token?
Options:
a. Every smallest individual Unit
b. Array of characters
c. Basic building blocks in a program
d. Pre-defined words
Reveal Answer
2. Which of the following are type of token?
Options:
a. Variable
b. Keywords
c. Operators
d. Statements
e. Expressions
Reveal Answer
3. What is Identifier in c used for?
Options:
a. Variable Name
b. Function Name
c. File Name
d. Operators
Reveal Answer
4. Which Special character is allowed as an Identifier in c?
Options:
a. *
b. _(Underscore)
c. #
d. %
Reveal Answer
5. Which of the following is a valid identifier?
Options:
a. a-123
b. a_123
c. a@123
d. 123a
Reveal Answer
6. Which of following is invalid identifier?
Options:
a. xyz%123
b. x_yz
c. xyz_123
d. xyz123
Reveal Answer
7. Which of the following are not valid keywords in "C"
Options:
a. main
b. int
c. printf
d. include
e. char
Reveal Answer
8. What is the size of float?
Options:
a. 4 bytes
b. 4 bits
c. 8 bits
d. 8 bytes
Reveal Answer
9. Enum is by default subtype of ______?
Options:
a. float
b. int
c. double
d. char
Reveal Answer
10. Which of following is valid enumeration data type?
Options:
a. enum Month{jan=0,feb,march=4,april,}
b. enum Month[jan=0,feb,march=4,april,]
c. enum month[Jan, Feb, March];
d. enum month{Jan=0, Feb, March};
Reveal Answer
11. What is the range of integer?
Options:
a. -32768 to 32767
b. -2,147,438,648 to 2,147,438,648
c. 0 to 65535
d. 0 to 4,294,967,295
Reveal Answer
12. What is the range of long integer?
Options:
a. -2,147,438,648 to 2,147,438,648
b. 0 to 4,294,967,295
c. -32768 to 32767
d. 0 to 65535
Reveal Answer
13. What is the range of unsigned integer?
Options:
a. 0 to 65535
b. -2,147,438,648 to 2,147,438,648
c. 0 to 4,294,967,295
d. -32768 to 32767
Reveal Answer
14. What is the range of unsigned long integer?
Options:
a. 0 to 65535
b. -32768 to 32767
c. 0 to 4,294,967,295
d. -2,147,438,648 to 2,147,438,648
Reveal Answer
15. What is the size of integer?
Options:
a. 2 bytes
b. 2 bits
c. 4 bits
d. 8 bytes
Reveal Answer
16. What is the size of a double variable?
Options:
a. 4 bytes
b. 8 bits
c. 8 bytes
d. 4 bits
Reveal Answer
17. How many bytes does a declaration float a, b; occupy?
Options:
a. 1 bytes
b. 4 bytes
c. 8 bytes
d. 16 bytes
Reveal Answer
18. How many bytes are occupied by double precision floating-point?
Options:
a. 2
b. 1
c. 4
d. 8
Reveal Answer
19. What is a variable?
Options:
a. Named memory locations
b. Named for identification of function
c. Name used for symbol
d. None of above
Reveal Answer
20. Which of the following is a valid variable?
Options:
a. abc_123
b. register
c. abc#123
d. abc 123
Reveal Answer
21. Which is a valid syntax for declaring variable?
Options:
a. Data_type variable_name;
b. Variable_name data_type= value;
c. Data_type variable_name= value;
d. Variable_name data_type;
Reveal Answer
22. What is the difference between declaration and definition of a variable?
Options:
a. Both can occur multiple times, but a declaration must occur first.
b. There is no difference between them.
c. A definition occurs once, but a declaration may occur many times.
d. A declaration occurs once, but a definition may occur many times.
e. Both can occur multiple times, but a definition must occur first.
Reveal Answer
23. What will be the output of the program? #include<stdio.h> int main() { int a=10; float b=15.4; printf("values of a=%d & b=%f", a, b); }
Options:
a. 10, 15.400000
b. 15.4, 10
c. 10, 15.0
d. none of above
Reveal Answer
24. What is the output of following program? #include<stdio.h> int main() { int num1=20, num2=10, num3; float result; num3=num1+num2; result=num1/num2; printf("values of num3=%d and result=%f ",num3, result); }
Options:
a. 0.5, 30
b. 30,2.000000
c. 3.0, 0.5
d. 0.3, 5
Reveal Answer
25. What is the output of following program? #include<stdio.h> int main() { int a=1000; float b=6.5; char c; printf("values are %d, %d , %d", sizeof a, sizeof b, sizeof c); }
Options:
a. 2,4,1
b. 4,4,1
c. 4,2,2
d. 2,4,2
Reveal Answer
26. Which escape character can be used to begin a new line in C?
Options:
a. /n
b. \a
c. \m
d. \n
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by