C# Ch 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

10. The C# method that produces a line of output on the screen and then positions the cursor on the next line is ________________ . a. WriteLine() b. PrintLine() c. DisplayLine() d. OutLine()

a. WriteLine()

5. Programs in which you create and use objects that have attributes similar to their real-world counterparts are known as ______________ programs. a. procedural b. logical c. object-oriented d. authentic

object-oriented

8. Which of the following languages is least similar to C#? a. Java b. Visual Basic c. C++ d. machine language

. machine language

11. Which of the following is a class? a. System b. Console c. void d. WriteLine()

Console

1. Which of the following is a method? a. namespace b. class c. Main() d. static

Main()

6. Which of the following pairs is an example of a class and an object, in that order? a. University and Yale b. Chair and desk c. Clydesdale and horse d. Maple and tree

University and Yale

1. If a programmer inserts using static System.Console; at the top of a C# program, which of the following can the programmer use as an alternative to System.Console.WriteLine("Hello");? a. System("Hello"); b. WriteLine("Hello"); c. Console.WriteLine("Hello"); d. Console("Hello");

WriteLine("Hello");

A comment in the form /* this is a comment */ is a(n)___. a. XML comment b. block comment c. executable comment d. line comment

block comment

1. In C#, an identifier _________________________ . a. must begin with an underscore b. can contain digits c. must be no more than 16 characters d. can contain only lowercase letters

can contain digits

2. A program that translates high-level programs into intermediate or machine code is a(n) _______________________ . a. mangler b. compactor c. analyst d. compiler

d. compiler

7. The technique of packaging an object's attributes into a cohesive unit that can be used as an undivided entity is ______________ . a. inheritance b. encapsulation c. polymorphism d. interfacing

encapsulation

13. Every method in C# contains a _________________________ . a. header and a body b. header and a footer c. variable and a class d. class and an object

header and a body

9. A series of characters that appears within double quotation marks is a(n) ______________ .

literal string

4. Variables are _______________ . a. named memory locations b. unexpected results c. grammar rules d. operations

named memory locations

12. In C#, a container that groups similar classes is a(n) ___________________ . a. superclass b. method c. namespace d. identifier

namespace

1. Which of the following identifiers is not legal in C#? a. per cent increase b. annualReview c. HTML d. alternativetaxcredit

per cent increase

1. The text of a program you write is called _________________________. a. object code b. source code c. machine language d. executable documentation

source code

3. The grammar and spelling rules of a programming language constitute its _____________ . a. logic b. variables c. class d. syntax

syntax

1. Programming languages such as C#, Java, and Visual Basic are ____________________languages. a. machine b. high-level c. low-level d. uninterpreted

b. High-level

Programming errors such as using incorrect punctuation or misspelling words are collectively known as ____________________ errors. a. syntax b. logical c. executable d. fatal

syntax


Kaugnay na mga set ng pag-aaral

Driver's Test Practice Questions

View Set

Vaccine Storage and Handling Module

View Set

Abeka 7th Grade History, Section 18.5 Review

View Set

Cell Bio Exam 3: Chapter 7, Chapter 8

View Set

The Great Migration & Great Depression

View Set

NCLEX - Drugs Used in Obstetrics

View Set

Chapter 3 - Understanding Human Movement

View Set