Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

1. Which of the following is a valid C# identifier?

a. 2a_big_Car

b. __STOP

c. ha*t123

d. skidoo-

e. none of the above

2. (True or False) 3000000000 is a valid C# value of the int type?

3. The symbols for comments are:

a. // for a single line and /* */ for multiple lines

b. /* */ for a single line and // for multiple lines

c. /* for a single line and /* */ for multiple lines

d. none of the above

In Questions 4-7 assume integer variables x=10, y=5, z=3, w=2.

4. The value of x + y % w is

a. 1

b. 11

c. 12

d. none of the above

5. The value of x / z * y is

a. 16 2/3

b. 0

c. 15

d. none of the above

6. The value of w *= y + z is

a. 13

b. 16

c. 18

d. none of the above

7. The value of (x++ + --y) - (++x + y--) is

a. 0

b. 1

c. -1

d. 2

e. -2

 

8. Which of the following is not a C# keyword?

a. class

b. public

c. main

d. int

e. none of the above

9. What is wrong with the following declaration?

int switch;

switch =5;

10. Which expression

i) 5 + (7* 3) or ii) (5 + 7) * 3

has the same value as the expression 5 + 7 * 3?

11. What will be the output when the following code fragment is run?

int x = 12, y = 14, z;

z = y / x +7;

x = z * z;

System.Console.WriteLine(x);

12. Which of the following statements, if any, have the same result for integers? x and y?

a. x += y;

b. y += x;

c. x = x + y;

13. Write a C# code to compute the value of the polynomial x4 + x2 +9x - 7.

14. Write a C# program to compute the perimeter of a square of length a.

15. Write a C# program that takes one number from the user and shows whether this number is odd or even.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91412018
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question?


Related Questions in Computer Engineering

How can deferred cancellation ensure that thread

How can deferred cancellation ensure that thread termination occurs in an orderly manner as compared to asynchronous cancellation?

A compute the sumnbsps1nbsp 1 2 3 nbsp nbsp 9999 the sum

(a) Compute the sum S1 = 1 + 2 + 3 + . . . + 9999 (the sum of all integers from 1 to 9999). Do not use a program. (b) Compute the sum S2 = 1+3+5+...+9999 (the sum of all odd integers from 1 to 9999). Do not use a program ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

Systems requirements and analysisyou have been hired to

Systems requirements and analysis You have been hired to lead a software project to design a Library Management System (LMS) for your local library at Jonesville. The library has been managed manually using written docum ...

Identify at least two 2 factors that have led to the

Identify at least two (2) factors that have led to the explosive growth of digital crime over the past a few decades. Next, describe the most common forms of digital crime, and give your opinion as to why those forms you ...

A student goes to the library let events b the student

A student goes to the library. Let events B = the student checks out a book and D = the student checks out a DVD. Suppose that P(B) = 0.52, P(D) = 0.85 and P(B AND D) = 0.05. Find P(B|D). Give your answer as a decimal ro ...

Question shuffling a linked list design a divide and

Question : Shuffling a linked list. Design a divide and conquer algorithm that randomly shuffles a linked list in O(nlog(n)) time and logarithmic extra space. The response must be typed, single spaced, must be in times n ...

A survey is taken of people in the class of favorite flavor

A survey is taken of people in the class of favorite flavor of ice cream among a forced choice of chocolate, vanilla, or strawberry. 70% prefer chocolate, 20% prefer vanilla, and 10% prefer strawberry. a) What is the ent ...

Question social networks have become popular media among

Question : Social networks have become popular media among individuals of all ages to stay connected with friends, family, colleagues and coworkers. However, many users are unaware of the dangers of sharing vast amounts ...

We can represent numbers in different bases think of how

We can represent numbers in different bases. Think of how you could represent the number 5 in base 2. Essentially, how can you break the number 5 into powers of 2. It contains one 4 and one 1. In base 2, your digit overf ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As