Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 2, Problem 6RQ
Assume that you have a variable declared as int
What is the value of 22% var1?
- 21
- 7
- 1
- 0
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
For the following code:
for ( a = 1, b = 5, c = 3; a < 4; a++, b++ )
{
c = a * b + c;
}
Indicate what values for the following variable will be when the code endsa=b=c=
= 1000;
int myNum
b- double my_num= 100;
4)
а-
Which one is NOT a valid variable declaration?
c- int my_num = '10"
d- int mynuml = 10 7/P
1) Which one is a valid variable declaration?
a- int my_num = 100.0;
b- int $my_num = '10000';
c- int myNum = 1000;
d- int my num = 100000;
Chapter 2 Solutions
Microsoft Visual C#
Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Assume that you have two variables declared as int...Ch. 2 - Assume that you have a variable declared as...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Prob. 8RQCh. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...
Ch. 2 - Prob. 11RQCh. 2 - Which of the following is not a C# comparison...Ch. 2 - Prob. 13RQCh. 2 - Which of the following C# types cannot contain...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - When you perform arithmetic operations with...Ch. 2 - Prob. 18RQCh. 2 - Prob. 19RQCh. 2 - Which of the following compares two string...Ch. 2 - What is the numeric value of each of the following...Ch. 2 - What is the value of each of the following Boolean...Ch. 2 - Choose the best data type for each of the...Ch. 2 - In this chapter, you learned that although a...Ch. 2 - Write a C# program named InchesTOCentmeters that...Ch. 2 - Prob. 6ECh. 2 - Write a C# program named ProjectedRaises that...Ch. 2 - Convert the ProjectedRaises class to an...Ch. 2 - Malcolm Movers charges a base rate of $200 per...Ch. 2 - Prob. 10ECh. 2 - Write a program named Eggs that declares four...Ch. 2 - Modify the Eggs program to create a new one named...Ch. 2 - Write a program named MakeChange that calculates...Ch. 2 - Write a program named Testslnteractive that...Ch. 2 - Write a program named FahrenheitToCelsius that...Ch. 2 - Prob. 16ECh. 2 - Prob. 17ECh. 2 - Pig Latin is a nonsense language. To create a word...Ch. 2 - Each of the following files in the Chapter.02...Ch. 2 - In Chapter 1, you created two programs to display...Ch. 2 - Prob. 2CP
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- o assign a double variable d to an int variable x, you write ____. x = d; x = (double) d; x = (int) d; d = x;arrow_forwarda- double my_num = 100.0; b- int $my_num = '10000'; int myNum = 1000; d- int mynum1 = 100000; 4) Which one is NOT a valid variable declaration? c-arrow_forwardIf you attempt to add a double, and an int, the result will be of data typearrow_forward
- If value is an identifier of int type and is holding value 200, is the following statement correct?char code = valuearrow_forwardprintTodaysDate is a function that accepts no parameters and returns no value. Write a statement that calls printTodaysDate.arrow_forwardWhich declaration(s) is (are) Not valid integer variable declaration(s)? Int my_num = 100.0; int $my_num = '10000'; int myNum = 1000; int mynum1 = 100000;arrow_forward
- Evaluate the following expressions, assume the following declarations: int x = 4 /3 * 2; int y = 9/ 2; int num = 6; num *= x + y; What is the value of the num after expression is evaluated?arrow_forwardAssume that you have declared a variable as double salary =45000.00;. Which of the following will display $45,000? WriteLine(salary.ToString(c)); WriteLine(salary.ToString(c0)); WriteLine(salary); Two of thesearrow_forwardWhich of the following declaration is correct? options: double* pValue = new int; int* pValue = new double; int* pValue = new int; double* pValue = new double;arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY