1. Declare five variables choosing for each of them the most appropriate of the types byte, sbyte, short, ushort, int, uint, long, ulong to represent the following values: 52130, -115, 4825932, 97, -10000. 2. Which of the following values can be assigned to a variable of type float and which to a variable of type double: 34.567839023, 12.345, 8923.1234857, 3456.091? 3. Write a program that safely compares floating-point numbers with precision of 0.000001.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
http://academy.telerik.com
rtelerik
Exercises
1. Declare five variables choosing for each of them the
most appropriate of the types byte, sbyte, short,
ushort, int, uint, long, ulong to represent the
following values: 52130, -115, 4825932, 97, -10000,
2. Which of the following values can be assigned to a
variable of type float and which to a variable of
type double: 34-567839023, 12.345, 8923.1234857,
3456.091?
3. Write a program that safely compares floating-point
numbers with precision of 0.000001.
rtelerik
Exercises (2)
1. Declare an integer variable and assign it with the
value 254 in hexadecimal format. Use Windows
Calculator to find its hexadecimal representation.
2. Declare a character variable and assign it with the
symbol that has Unicode code 72. Hint: first use the
Windows Calculator to find the hexadecimal
representation of 72.
Declare a boolean variable called isFemale and
3.
assign an appropriate value corresponding to your
gender.
rtelerik
Exercises (3)
1. Declare two string variables and assign them with
"Hello" and "World". Declare an object variable and
assign it with the concatenation of the first two
variables (mind adding an interval). Declare a third
string variable and initialize it with the value of the
object variable (you should perform type casting).
2. Declare two string variables and assign them with
following value:
Transcribed Image Text:http://academy.telerik.com rtelerik Exercises 1. Declare five variables choosing for each of them the most appropriate of the types byte, sbyte, short, ushort, int, uint, long, ulong to represent the following values: 52130, -115, 4825932, 97, -10000, 2. Which of the following values can be assigned to a variable of type float and which to a variable of type double: 34-567839023, 12.345, 8923.1234857, 3456.091? 3. Write a program that safely compares floating-point numbers with precision of 0.000001. rtelerik Exercises (2) 1. Declare an integer variable and assign it with the value 254 in hexadecimal format. Use Windows Calculator to find its hexadecimal representation. 2. Declare a character variable and assign it with the symbol that has Unicode code 72. Hint: first use the Windows Calculator to find the hexadecimal representation of 72. Declare a boolean variable called isFemale and 3. assign an appropriate value corresponding to your gender. rtelerik Exercises (3) 1. Declare two string variables and assign them with "Hello" and "World". Declare an object variable and assign it with the concatenation of the first two variables (mind adding an interval). Declare a third string variable and initialize it with the value of the object variable (you should perform type casting). 2. Declare two string variables and assign them with following value:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY