• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 24 páginas
Examen

ISDS 505 Exam 1 |Questions with 100% Correct Answers

Document preview thumbnail
Vista previa 3 fuera de 24 páginas

ISDS 505 Exam 1 |Questions with 100% Correct Answers Which of the following is NOT a valid C# identifier Select one: a. _order b. a c. this d. a1 c. this What is NOT considered a keyword by the C# language? Select one: a. catch b. global c. implicit d. static b. global In Object-oriented programming language, the ability to create methods that act appropriately depending on the context is called _________. Select one: a. inheritance b. encapsulation c. instance d. polymorphism d. polymorphism in "using System;", what is "System" referring to? Select one: a. class b. variable c. namespace d. method c. namespace Which of the following pairs is an example of a class and an object, in that order? Select one: a. animal and bear b. cup and glass c. CSUF and university d. car and vehicle a. animal and bear What is the value of the expression 3+4*2 ? Select one: a. 10 b. 11 c. 5 d. 14 b. 11 What is the value of 5=3? Select one: a. 1 b. 0 c. false d. true d. true In C#, you use the ____ data type to hold a series of characters. Select one: a. string b. int c. sbyte d. char a. string Assume you have a variable declared as int var1=5; What is the value of 27%var1 ? Select one: a. 5 b. 2 c. 4 d. 0 b. 2 Assume that you declared a double variable called unitPrice which is used to get an item's unit price. Which of the following will display the unit price in a currency format with 2 decimal places? Select one: a. Console.WriteLine(unitPrice.ToString()); b. Both Console.WriteLine(unitPrice.ToString("C")); and Console.WriteLine(unitPrice.ToString("C2")); c. Console.WriteLine(unitPrice.ToString("C")); d. Console.WriteLine(unitPrice.ToString("C2")); b. Both Console.WriteLine(unitPrice.ToString("C")); and Console.WriteLine(unitPrice.ToString("C2")); Programming languages such as C#, Java, and Visual Basic are ____________________languages. a. machine b. high-level c. low-level d. uninterpreted b. high-level A program that translates high-level programs into intermediate or machine code is a(n) _______________________ . d. compiler The grammar and spelling rules of a programming language constitute its _____________ . d. syntax Variables are _______________ . a. named memory locations Programs in which you create and use objects that have attributes similar to their real-world counterparts are known as ______________ programs object-oriented Which of the following pairs is an example of a class and an object, in that order? University and Yale The technique of packaging an object's attributes into a cohesive unit that can be used as an undivided entity is ______________ . encapsulation Which of the following languages is least similar to C#? machine language A series of characters that appears within double quotation marks is a(n) ______________ literal string The C# method that produces a line of output on the screen and then positions the cursor on the next line is ________________ . WriteLine() Which of the following is a class? a. System b. Console c. void d. WriteLine() b. Console In C#, a container that groups similar classes is a(n) ___________________ . c. namespace Every method in C# contains a _________________________ . header and a body Which of the following is a method? a. namespace b. class c. Main() d. static c. Main() 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 Which of the following identifiers is not legal in C#? a. per cent increase b. annualReview c. HTML d. alternativetaxcredit a. per cent increase The text of a program you write is called _________________________. source code Programming errors such as using incorrect punctuation or misspelling words are collectively known as ____________________ errors. syntax . A comment in the form / this is a comment / is a(n)___. block comment 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"); b. WriteLine("Hello"); Which of the following is a GUI object that provides an interface for collecting, displaying, and delivering information and that contains other controls? a. Button b. Form c. TextBox d. Label b. Form In the Visual Studio IDE main window, where does the menu bar lie? horizontally across the top of the window In the IDE, the area where you visually construct a Form is the ______________ . Form Designer When you create a new Windows Forms project, by default the first Form you see is named ______________ . Form1 The Form class has ______________ properties about 100 Which of the following is not a Form property? a. BackColor b. Size c. Text d. ProjectName d. ProjectName Which of the following is a legal Form Name property value? a. PayrollForm b. Payroll Form c. either of the above d. none of the above a. PayrollForm Which of the following is a legal Form Text property value? a. PayrollForm b. Payroll Form c. either of the above d. none of the above c. either of the above Which of the following does not appear in the IDE's Toolbox list? a. Label b. Button c. Text d. TextBox c. Text After you have dragged a Button onto a Form in the IDE, you can double-click it to ______________ create a method that executes when a user clicks the Button The button1_Click() method that is generated by the IDE ______________ . a. has a private access specifier b. is nonstatic c. contains parameters between its parentheses d. all of the above d. all of the above A(n) ______________ is generated when a user interacts with a GUI object. event If you create a Button named yesButton, the default name of the method that responds to clicks on it is ______________ . yesButton_Click() Statements allowed in a Click() method include ______________ . a. variable declarations b. arithmetic statements c. both of the above d. none of the above c. both of the above . ______________ are controls through which a user can enter input data in a GUI application. TextBoxes The value in a TextBox is ____________ string The process of changing a program's internal structure without changing the way the program works is ______________ . code refactoring If you inadvertently create a Click() method for a control that should not generate a click event, you can successfully eliminate the method by ______________ .


Información del documento

Subido en
17 de abril de 2024
Número de páginas
24
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$14.00

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Topscorer1
3.7
(42)
Vendido
252
Seguidores
208
Artículos
7220
Última venta
3 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.