C# Questions & Answers - Integer Data Types - Sanfoundry
C# Questions & Answers - Integer Data Types - Sanfoundry
Home
About
Jobs
Contact
C-Tutorials
C-MCQs
Computer-Science-MCQs
C++MCQs
C-Programs
College-Projects
Java-MCQs
C#MCQs
Testimonials
Linux-MCQs
Internship
Developers
SAN-MCQs
Best-Books
Advertisements
Best Training
Courses
SAN II - Administration Training
Linux Fundamentals/Administration
Hover to Expand
Advanced C Programming
Linux-C Debugging Techniques
Linux System Programming
Device Driver
Trainings
Linux Device Drivers Basics
Linux Block Device Drivers
Linux Network Device Drivers
Linux PCI Device Drivers
Linux USB Device Drivers
Linux Video Device Drivers
Linux Audio Device Drivers
Linux I2C Device Drivers
Advertisements
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
1/7
2/25/2015
2.
3.
4.
int n = 10;
5.
6.
Console.WriteLine(m * k);
7.
Console.ReadLine();
8.
Technical Career
Developer Tracks
SAN Developer
Linux System Developer
Linux Kernel/Driver Developer
Linux Network Developer
Mentoring
Productivity
Coding-Style
GDB Assignment
Feedback
Advertisements
2/7
2/25/2015
b) c = a + int(float(b));
c) c = a + convert.ToInt32(b);
d) c = int(a + b);
View Answer
9. Correct Set of Code for given data a and b to print output for c as
74 ?
a)
1.
int a = 12;
2.
float b = 6.2f;
3.
int c;
4.
c = a / b + a * b;
5.
Console.WriteLine(c);
1000 C# MCQs |
Quiz
Integer Data Types
Floating and Decimal Data Types
b)
1.
int a = 12;
2.
float b = 6.2f;
3.
int c;
4.
c = a / convert.ToInt32(b) + a * b;
5.
Console.WriteLine(c);
c)
1.
int a = 12;
2.
float b = 6.2f;
3.
int c;
4.
c = a / convert.ToInt32(b) + a * convert.ToInt32(b);
5.
Console.WriteLine(c);
d)
Comparison of Strings
Searching and Modifying Strings
1.
int a = 12;
2.
float b = 6.2f;
3.
int c;
4.
c = convert.ToInt32(a / b + a * b);
5.
Console.WriteLine(c);
Operation on Characters
Public & Private Access Modifier
Use of Ref and Out Parameters
Use of Variable Arguements
Polymorphism
Structures
Enumerations
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
3/7
2/25/2015
View Answer
Fundamentals of Inheritance
Inheritance Implementation
Method Overloading
1)
Method Overriding
Constructor Overloading
1.
char l ='k';
2.
float b = 19.0f;
3.
int c;
4.
c = (l / convert.ToInt32(b));
5.
Console.Writeline(c);
2)
1.
char l ='k';
2.
float b = 19.0f;
3.
int c;
4.
c = Convert.ToInt32(l / b);
5.
console.writeline(c);
a) Yes
Character Stream
b) No
View Answer
Fundamental of Delegates
Delegates in Detail
Events
Fundamental of Generics
Generic Methods
Fundamental of LINQ
Operation and Query with LINQ
Introduction of Reflections
Collection Classes
View Answer
Maths Class
Rounding Functions in C#
Math Methods
Multi-threaded Programming - 1
1.
Multi-threaded Programming - 2
2.
Iterators
3.
float a = 10.553f;
Fundamentals of Namespaces
4.
long b = 12L;
Fundamentals of Preprocessors
5.
int
6.
c = Convert.ToInt32(a + b);
Fundamental of Networking
7.
Console.WriteLine(c);
URI class
8.
c;
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
4/7
2/25/2015
a) 23.453
Pointers Operation - 1
b) 22
c) 23
d) 22.453
Pointers Operation - 2
Accessor Controls of Class
Introduction of String Formatting
View Answer
String Formatting - 1
String Formatting - 2
Follow
1.2k
Follow
1.5k
Subscribe to Sanfoundry
0
Tweet
Answer
Answering
Net
Government Jobs
Free Downloads
Algorithms
Androids
Science
Advertisements
*
Email Address
*
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
5/7
2/25/2015
Subscribe
Read Next:
1. C# Questions & Answers Floating and Decimal Data Types
2. Java Questions & Answers Integer and Floating Data Types
3. C# Questions & Answers Do While Loop Statements
4. C Programming Questions and Answers Data Types and Sizes
2
5. C Programming Questions and Answers Data Types and Sizes
1
Manish Bhojasia
Follow
1,289 followers
Sanfoundry
Follow
+1
+ 1,539
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
6/7
2/25/2015
Copyright
Technology Groups
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel & Device Driver Programming. Our Founder has trained
employees of almost all Top Companies in India. Here are few of them: VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft,
Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium Networks, ST Microelectronics, Samsung, LG-Soft, Wipro, TCS, HCL, IBM,
Accenture, HSBC, Northwest Bank, Mphasis, Tata Elxsi, Tata Communications, Mindtree, Cognizant, mid size IT companies and many Startups.
Students from top Universities and colleges such as NIT Trichy, BITS Pilani, University of California, Irvine, University of Texas, Austin & PESIT
Bangalore have benefited a lot from these courses as well. The assignments and real time projects for our courses are of extremely high quality
with excellent learning curve.
Register for Expert Level Training Classes by our Founder & CTO. Alternatively, call us for your Corporate Training or College Training
needs.
Responsive Theme powered by
2015 Sanfoundry
WordPress
http://www.sanfoundry.com/csharp-mcqs-integer-data-types/
7/7