Ovido
Idioma
  • Inglés
  • Español
  • Francés
  • Portuguesa
  • Alemán
  • Italiana
  • Holandés
  • Sueco
Texto
  • Mayúsculas

Usuario

  • Iniciar sesión
  • Crear cuenta
  • Actualizar a Premium
Ovido
  • Inicio
  • Iniciar sesión
  • Crear cuenta

C# Chapter 2 Part 1

Another way to write the following expression is _______
ans *= v1 - 1

ans = ans * v1--;

If you expect to receive an "A" in this course, which of the following declarations would be most appropriate for storing the grade?

char letterGrade

T/F) C# allows you to mix numeric integral types and floating-point types in an expression.

True

(T/F) An int variable would be the most appropriate type for a memory location that will be used to store the monthly membership dues for the computer club.

False

(T/F) An appropriate identifier used to store the total transaction amount is totalTransactionAmount.

True

(T/f) The bool data type can take values of true/false and on/off/

False

The decimal equivalent for 3.42e-5 in scientific notation is .00342

False

The result of the following expression is
______.double ans, v1 = 45.7, v2 = 10.5;

int v3 = 5;

ans = (int) v1 + v2 / (double) v3;

47.1

Which of the following formats displays two digits to the right of the decimal?

{0:C}
{0:c}

{0:f2}

(all of the above)

Which of the following would be the most appropriate identifier for a memory location that will store the amount of rainfall for a given period of time?

amountOfRain

(T/F) With only 8 bits, you can represent 2^8 or 256 different decimals.

True

(T/F) Placing the two plus symbols (++) before an identifier causes one to be added to the memory location referenced by the variable prior to any other statement's execution.

True

(T/F) An error will be produced when moreData is assigned the boolean variable shown above because the keyword true should be enclosed in double quotation marks.

False

Which of the following is a valid identifier?

finaleGrade

What is stored in ans as a result of the arithmetic expression, given the following declarations?

int ans = 5, v1 = 2, v2 = 10, v3 = 18;

ans += v1 + 10 * (v2-- / 5) + v3 / v2;

29

(T/F) the value 78,888.90 is printed as output when the {0:c} format specifiers used in 78888.894

False

(T/f) The result of "123" + "321" is "123321"

True

The compiler is responsible for ____.

Translating high-level programming language into machine-readable form

WriteLine( ) differs from Write( ) in that ____.

WriteLine( ) advances to the next line after it finishes displaying output

Using the object-oriented approach, a(n) ____ is a combined set of attributes and actions.

Class

Which of the following would display "Good day!" on the screen?

Console.WriteLine("Good day!");

(T/F) Procedural programming is also called structured programming.

False

Comments that use two forward slashes are called ____.

inline

Given the following output statement, what would be displayed?

Console.Write("Ok\\ \"I\'m sure\"");

Ok\ "I'm sure"

(T/F) Since C# is an object oriented language, everything is designed around a class.

True

The system namespace contains classes that define commonly used types or classes.

True

One class predefined as part of .NET is ____

Console

If you write a program and, instead of multiplying two values together as intended, you divide one value by the other, you produce a(n) ____ error.

logic

(T/F) The rule that every statement should end with a semicolon is an example of a syntax rule.

True

(T/F) Classes and class diagrams are used most often with the structured procedural approach to software development.

False

(T/F) The Framework Class Library (FCL) consists of more than 2,000 classes.

True

(T/F) In C#, it is tradition to name the file containing the class the same name as the class name, except the file name will have a .c# extension affixed to the end of the name.

False

In a C# program, namespace is used to ____

Group functionally related types under a single name.

(T/F) Each instruction statement has a semantic meaning—a specific way in which it should be used.

True

(T/F) Procedural and object oriented are two commonly used design methods.

True

(T/F) Comments are considered instructions to the computer.

False

Problem specifications often include the desired output of the program in terms of what is to be displayed, saved, or printed.

True

The ____ parameter type cannot be used unless the original argument is initialized before it is sent to the method.

ref

____ is added to hold the screen when the program runs.

Read( )

All programs consist of at least one ____________.

method

Call by ____________ is the default parameter type.

value

All Main( ) method headings must include the ____________ modifier meaning that the method belongs to the type itself rather than to a specific object of a class.

static

(T/F) The Read( ) method is different from the ReadLine( ) method in that the Read( ) returns an int and the ReadLine( ) returns a string argument.

true

(T/F) One way to ensure that you have one entry and one exit from a method is to include a single return statement as the last statement in the method.

T

The Math class has a number of static methods located in the ____ namespace.

System

double answer = Math.Pow(3, 2);
The result of the call to Math.Pow( ) in the above statement is to store ____ in answer:

9

Which of the following is NOT a parameter type?

in

Cuestionario
C# Chapter 1 part 2
C# Chapter 1 part 1
Kapitel 4
KOTOBA PM LEMBAR 6(hal 19,20,21,22-23,24,25,26)
Kaptiel 3
Cognitive psychology attention
76-100
قیافه شناسی
marketing
Paris Basin
انتقال ها
Market StudiesMarket Studies is a discipline used to understand the market, the customers, the development of the offer and the position of the brand & its communication.
Many Kingdoms
SCI-401
Pacial Gine
morfologia das articulações
articulacoes
articulações anatomia humana
Spanska v. 40
Forensic Toxicology
Math, Unit 2 Quiz
Blodet
kap 1
BLED CHAP 12
TLE (tech) (1st exam)Study!!!
BLED CHAP 11
integumentary
CHAPTER 3: TYPICAL SIGNS AND SYMPTOMS OF PSYCHOPATHOLOGY (PART 2)
ekologi
Analyse qualitative des données
Spanska - djur 1
Spanska - djur
Sociologie des mobillitéjj
tyska glosor
Handel och logistik - kopia
ModalsModal is an auxilliary verb
KOTOBA PM LEMBAR 5(hal 15,16,17,18)
Drinkar 2De 10 första drinkarna
Merkantilism
Keynesianismen
Kanji 一
Handel och logistik
aparato reproductor femeninocompruebe los temas estudiados de el aparato reproductor femenino
51-75
Math GRE
BAB 25
la materia y sus interacciones
endocrinologia
Rock
PSYC-2018 Quiz
Revolution francaise
Lavar
Drinkar VGHär kommer ett härligt sätt att övar på drinkar!
Spanska
Forensic Ballistics (3)
English vocabulary 3
atividades de ocio
Resonera
Djur stamtavla
Ropa
Tipos de comercio
интеркаларни, латерални, трауматични меристеми и меристемоиди
Normas de trabajo y seguridad. 1
Вегетациона купа коријена
HEPSY Cours 2
DNL
havo maatschappijleer se1
Virology
Hi
NEURO TD2
computer
gs so 2.2,3,5
Geo glaciersHehe
Mandarin
hge
KOTOBA PM LEMBAR 4(hal 12,13,14,15)
Anglais S5 Voc 1
kap 6
Animal physiology
Forensic Ballistics (2)
GEOGRAFIA
FÍSICA
sistema oseosistema oseo
moment 1
FILOSOFIA
musculosmusculos de la cabeza
Léna
Sociology
Relgion prov 1
Test 1
BIOLOGIA 2.0
lite randoms
frågor
färger
kläder
veckodagarna
Jag är...
Food accessories
Food
Djur
math
مکتب ها
scheikunde se1
Gender and Society
KOTOBA PM LEMBAR 3(hal 8,9,10,11,12)
AP 10
Chapter 20 Cardiac
Java 2 chapter 10 review study
Java 2 Chapter 8 review study
Vegetaciona kupa stabla
Java 2 chapter 9 review study
LED fakta
Suffixes Forming AdjectivesSuffixes which transform any parts of speech into adjective
voc 4 (america's gun culture)
Ljustekniska storheter och enheterklar
16 LERNWORTSCHATS
VerbChoose the correct answer and earn points! Good luck!!
Suffixes Forming NounsSuffixes which transform any parts of speech into noun
intro to transpo L1
Kapitel 2
Ljusfördelning och avbländning
Art and power : the power of music
its PL1
svt 2
Mossor
H1 zinnen
inflation
Duits schritt 41 (3vwo)
herman vocab 28
نکاتی که سختن
نکاتی که سختن
voc 2
biologia
USCP FINAL
HOPE 1
gastrulacion
social
vicios de lenguajeestudiar
psychology approaches
tora
glosor v.39
engels woordjes h1
wush
TRIP
sooo
KOTOBA PM LEMBAR 2(hal 7,8)
Purcomm
Frans E1 (3 vwo a)
Glosor v.39Glosor till kapitel 3 i texboken
Frans B1 (3 vwo a)
Frans A1(3 vwo a)
HISTORY OF TRAVEL & TOURISM EARLY TOURISM TWO FORMS: 1. Travel for Business.
strategic business analysis
Science Exam_
NGO SO periode 1
English Exam_
CLE Exam_
EARTH AND LIFE SCIENCE
PR2tf tdrf
math
CPHN 1
Ergonomi¨bra
Purposive Communication - 1st Year College BSTM
Övningstenta
خانواده ویولن
9th
Nutri Lec - copy
TÁCTICACAPÍTULO III ORGANIZACIÓN
TÁCTICACAPÍTULO II LA INFANTERÍA
tisular
Nutri Lec
analgésicos, antiarritmicos y diuréticosfármaco
groep 6,7,8,9
pcn deporte
correspondances trigo
Kapitel 1
Pop Quiz
Marvin
etude art
Engelska förhör
linguistic 2
THE BIOCHEMICAL CYCLEquiz september 26, 2024
prelim
Methods of Philosophizing
ps1
beggreppslista
Atención primaria
Definitions of Philosophy
adverbes de frequence
civil society quiz make it easy
civil society for sustainable development
Islam åk 8 del 5 Islam och samhället - i historien och nutid .
Introduction to Financial Management
mapeh
adjectifs
wh questions
Spanish words part 1
Nask SO periode 1
1st
arts
music
نمایش معاصر
michael jordan
PE
litr - copy
acts
bh budtgdrcyrt
IT112 M2L1,2,3
Psychology Key Terms Midterm
Psychology Midterm
Lab Blood
litr
Writing Critique Paper
cellular biology quiz
AtomfysikAtomfysik
hh
atomai molekules
spanska åk9 1
Spanska v. 39
Science Ions Polyatomique
Java 2 chapter 10
Java 2 chapter 9
revision mind map KA1
Mapeh (Arts) (1st Exam)study!!!
AP
Mapeh (Music) (1st exam)study!!!
Espagne
Science
Araling Panlipunan
Science (1st exam)study!!!
Utvecklingspsykologi
Reading Texts CriticallyLesson 1 for 1st Semester (Grade 12)
1
physicskakak
additional
NEC 2023 Chapter and Article Titles - copy
subjects or arts
Grade 9 Mapeh Lesson
Engelska medical word
Nederlands H2
Week 5 Particulieren
CHAPTER 2: COGNITIVE NEUROSCIENCE
موسیقی جهانیساز های بادی
scie rev
OralCom
Islam åk 8 del 4 Sharia & Fester .
history lesson 4
STS
parcial 1 y 2
Nematology (Prelims)IDENTIFICATION
voc pg 36 37 38
identificstion of carbohydrates
BIO900 Plastider del 1
Kemi E-provKemiska beteckningen på grundämnen i periodiska systemet 1-20
​​Samhällsvetenskapliga begrepp till vecka 38
So
BIO900 Fotosyntes del 1
engelska läxa v.39
química
BIO900 Begrepp del 1
Frans tweede klas voca b
ap
arithmetic sequence solvings
3 Flips on alien on earth
Tal 1
oralcom
Parts of speech
CSS REVIEWER 0.1css reviewer
Compa
Kalagayan, suliranin at pagtugon sa isyung pangkapaligiran ng pilipinas
ENGLISHPERIODICAL TEST ENGLISH PRACTICE
Kontemporaryong Isyuito ay mga napapanahong isyu
vecka 39
Monetary - Midterm
filipino
english and speech
BIO900 Instuderingsfrågor del 1
EMS Olympiad (A=OE+L)
EMS Olympiad (general ledger)
Geschiedenis begrippen par. 1.1 & 1.2
proteins
lipids (fats)
statistics
contemporary
artd
Sociology Midterm 1
Psychology Midterm 1
Bioquimica continuacion
nucleic acids
tandvård anatomi
Lesson 4 - Dimensional Analysis