Get Guided Penn Foster 03683300
Exam: 036833RR – INTRODUCTION TO C#
When you have completed your exam and reviewed your answers, click Submit Exam. Answers will not be recorded until you hit Submit Exam. If you need to exit before completing the exam, click Cancel Exam.
Questions 1 to 20: Select the best answer to each question. Note that a question and its answers may be split across a page break, so be sure that you have seen the entire question and all the answers before choosing an answer.
1. Which of the following file extensions must be used for a C# program to work?
A. .vb
B. .csc
C. .cs
D. .c#
2. Which of the following data types should be used when working with decimal numbers?
A. String
B. Char
C. Floating-point
D. Boolean
3. Which of the following numerals represents the base of hexadecimal?
A. 32
B. 16
C. 8
D. 64
4. The Boolean operator that means not equal to is
A. /= .
B. ^=.
C. != .
D. =.
5. Which of the following statements about evaluating mathematical expressions is false?
A. Expressions inside parentheses take place first.
B. Multiplication always takes place before addition and subtraction.
C. Division may take place before multiplication, addition, and subtraction.
D. Division always takes place before addition and subtraction.
6. If your program doesn’t have comments, and you want someone to be able to read it, you should be sure to add a/an
A. method.
B. inline.
C. remainder.
D. constant
7. Which type of comment begins with two forward slashes?
A. Namespace
B. XML-documentation
C. Block
D. Line
8. If you misspell a word in your program, a _______ error will result.
A. syntax
B. logical
C. debugging
D. semantic
9. Which of the following examples is a valid C# class identifier?
A. _phonenumber
B. _interface
C. _phone#
D. 800phonenumber
10. Which of the following C# data types contains a fixed-precision number?
A. char
B. string
C. Decimal
D. bool
11. The C# programming language implicitly converts a float to
A. long.
B. int.
C. char.
D. double.
12. Which of the following elements helps to organize your program code and make it easier to read through the use of spaces, tabs, and blank lines?
A. Comment out
B. Inheritance
C. Comments
D. Whitespace
13. Which of the following examples is not a reserved keyword in C#?
A. long
B. rate
C. double
D. else
14. Two programmers are discussing writing, compiling, and executing a C# program. Jared says that he’ll use both the command line and the Visual Studio IDE. Sharon says she’ll use either the command line or the Visual Studio IDE, but not both. Who is correct?
A. Both Jared and Sharon are correct.
B. Neither Jared nor Sharon is correct.
C. Only Sharon is correct.
D. Only Jared is correct.
15. Which of the following scenarios is the best reason to comment out a code statement?
A. Your program isn’t working appropriately, and you’re trying to discover the statement that’s causing the problem.
B. You wish for the program to self-document so that you don’t have to add additional comments.
C. You’re documenting the programming process used for that portion of the program.
D. Your program is functioning as it was intended, but you wish to experiment to see what will happen.
16. A declaration statement must end with a
A. comma.
B. dash.
C. period.
D. semicolon.
17. Which of the following is the best example of a named constant?
A. string
B. long
C. char
D. short
18. An instance of a class is known as an
A. identifier.
B. attribute.
C. variable.
D. object.
19. Arithmetic operators that operate on two values are called _______ operators.
A. binary
B. postfix
C. unary
D. prefix
End of exam
20. A C# keyword can be used as an identifier when a/an _______ symbol precedes it.
A. dollar or peso ($)
B. asterisk (*)
C. hash or pound (#)
D. “at” sign (@)
Need Guide to Penn Foster?
Are you struggling collectively together with your online classes? Are you wondering, can I pay someone to complete beauty online for me? Do you want someone to help you out? You have come to the right place. At Get Exam Done, we offer professional academics who will deal with your regular online beauty portals. You do now no longer must do anything, now no longer to say search, or pay a person to take my online class. Everything for your portal will be done from our quit, assignments, discussions, and quizzes. For custom, help email us at [email protected] or WhatsApp us at +1(657)366-7486