Question

This is C#. please help me with the question: Examine the code. When will C be...

This is C#. please help me with the question:

Examine the code. When will C be assigned 3? (Be careful.)
if (A == B);
     C = 3;

a) when A is equal to B

b) when A is not equal to B

c) never

d) every time the program is executed

e) not enough information is given

i entered option "A" as my answer and it was wrong. please i need the right answer.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

From the question:

if (A == B);
     C = 3;

Here if (A == B); end with the semi column so it consider as a statement.

So C=3 is always executed irrespective of condition.

So every time the program is executed

Option D

Add a comment
Know the answer?
Add Answer to:
This is C#. please help me with the question: Examine the code. When will C be...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Here, is my output of the code, Please help me to resolve this warning and Help...

    Here, is my output of the code, Please help me to resolve this warning and Help me to get my progress bar to reach 100% instead of 90%. Here, is my C program Code.

  • Please help me with this c++ segment of code, I am a newbie. I need help...

    Please help me with this c++ segment of code, I am a newbie. I need help to shuffle a deck of 52 cards using a stack of an array.

  • Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to...

    Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...

  • Could you please help me with an answer to this question in a simple way for...

    Could you please help me with an answer to this question in a simple way for the beginner? This is a beginner level class so can you please help me. The code must have beginner level implementation. Can you also please explain what things do. Thank you! Write a program that prompts the user for a positive integer number smaller than 256 (i.e. in [0...255]) and converts it into an 8-bit binary number. The bits are the remainders of the...

  • I need someone to check my answer, not answer the question for me :) question: for...

    I need someone to check my answer, not answer the question for me :) question: for a line of ln(concentration) versus time would produce a straight line for a I. zero order reaction II. 1st order reaction III. 2nd order reaction The option I chose was option C: I, II, or III is this correct, and if not, what did I do wrong? Please just check me :)

  • Can someone please help me with the piping of the following code. The Myshell is a command langua...

    Can someone please help me with the piping of the following code. The Myshell is a command language interpreter which can execute several internal commands as well as some external command using a default Linux shell. The command can be read from either standard input or a batch file. This program currently executes commands such as ls>1, sort myshell.c >2. What I need it the to pipe the commands so i can execute commands like ls | 1 or sort...

  • : LP 4: Assignment 4 - Penny or Nickel Challenge in visual basic 2017, I am...

    : LP 4: Assignment 4 - Penny or Nickel Challenge in visual basic 2017, I am stuck need help on form and code in c++ this is for practice to get my right form and coding to be able to do my in-class assignment. The instructor said to perfect this and when we did class program we will be able to do it all. Oh hello, I am struggling on getting it right especially looping. Thank you, your answer may...

  • could you help me with that question, please I need a strong one page with good...

    could you help me with that question, please I need a strong one page with good information please help me with that question copy and past the answer, I need one page also I need a good topic to address the course is Health Care Legislation I provide you with the information below it is for my biology class please addresses a health care legislation at the local, state, or federal level and its relationship to your particular program of...

  • Help me write a python code. Write a program that asks the user for the name...

    Help me write a python code. Write a program that asks the user for the name of a text file, then reads each line of the text file and prints it on the screen, making every other line "title case." For example, suppose the following text is saved in my_file.txt: While I nodded, nearly napping Suddenly there came a tapping As of someone gently rapping, Rapping at my chamber door. When run, the program looks like this: Enter filename: While...

  • Please help ( Please answer my question. I pay every month for you to help, but...

    Please help ( Please answer my question. I pay every month for you to help, but every time I need help you not answer my question. Please tell me why Please help me with this. I need 2 nursing diagnosis Patient is 72 year old. patient has a problem are CHF, COPD, Sob, and history with PTSD, MDD, Anxiety, HTN, CA kidney Base on patient problem, Please help me question below 1. Nursing Diagnosis #1) a. State rationale for choosing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT