Which of the following statements changes the contents of the strSocSec variable from “000-11-2222” to “000112222”? a. strSocSec = strSocSec.Remove("–") b. strSocSec = strSocSec.RemoveAll("–") c. strSocSec = strSocSec.Replace("–","") d. strSocSec = strSocSec.ReplaceAll("–")
Q: Which of the following is a wrong statement? O Variable can change the value O variable can be used…
A: Answer 1: all statements are true except for the second one. a variable can not be used without a…
Q: 7. Which of the following declares a named constant having the Double data type? a) Const db1RATE As…
A: Double data hold more bytes .
Q: Which of the following assigns the number of characters in the strAddress variable to the intNum…
A: “Length” function: The “Length” function in String class return the number of characters occurred in…
Q: Which of the following variable names are written with the convention used in this book?1.…
A: Which of the following variable names are written with the convention used in this book?1.…
Q: Which of the following php statment/statments will store 200 in variable count? A. $count = 200 B.…
A: The correct variable declaration in PHP is $variable name=value followed by semicolon(;) In PHP…
Q: Which of the following returns the Boolean value True when thestrPetName variable contains the…
A: The question is to choose the correct option from the given options.
Q: The strName variable contains the string “Doe Jane”. Which of the following changes the variable’s…
A: In order to change the variables content to the string “Doe, Jane”, the following statement is used:…
Q: Which of the following is the correct statement to return UTAS? O "utas".toUpperCase("utas") O…
A: The toUpperCase() function of the java string returns the string in uppercase letters. In other…
Q: Which of the following changes the string stored in the strName variable from “Mark Smyth” to “Mark…
A: The correct option is (a), that is, strName = strName.Change("y", "i").
Q: hich of the following statements adds the number stored in the decPrice variable to the number…
A: The problem is based on the basics of programming languages.
Q: Which of the following statements assigns the first four characters in the strItem variable to the…
A: The statement “strWarehouse = strItem.Substring(0, 4)” assigns the first four characters in the…
Q: Which of the following declares a procedure-level String variable? a. Dim String strCity b. Dim…
A: ANS: - Option(b) is correct. Dim strCity As String
Q: Which of the following statements removes any leading and trailing spaces from the strCity variable?…
A: Trim method: Trim method is used to remove spaces from both the starting and end of a string. This…
Q: Which of the following declares a named constant having the Double data type? a. Const dblRATE As…
A: The correct option is (a), that is, Const dblRATE As Double = 0.09
Q: Which of the following is a valid header for a procedure that receives a copy of the value stored in…
A: Justification: Based on the procedure header syntax, the statement "Private Sub DisplayName(ByCopy…
Q: Which of the following declares a class-level variable named dblAmounts?a. Class dblAmounts As…
A: Solution: Private dblAmounts As Double declares a class-level variable named dblAmounts. The correct…
Q: Which of the following assigns the highest column subscript in the array to the intHighCol…
A: GetUpperBound(): The user can use the method called “GetUpperBound()” to find the highest column…
Q: If the strName variable contains the string “Sharon Kelper”, which of the following changes the…
A: ANS: - Option (a) is correct. The insert function inserts the string " P." at index 6.
Q: Which of the following is used to convert Date object to String? a) SimpleDateFormat sdf = new…
A: Syntax for converting date to string:- SimpleDateFormat objectName=new…
Q: Which of the following statements changes the contents of the strWord variable from “led” to “lead”?…
A: Insert method: The Insert method of String class accepts a string index and a string value as…
Q: Which of the following data types is appropriate for a variable that will storealphanumeric text? a.…
A: Alphanumeric text consists of both letters and numbers. “String” is a data type that is used to…
Q: Q3: Create a Windows Form application that contains a Form with 3 TextBox(s), 2 ListBox, label, and…
A: The code is below:-
Q: Which of the following methods can be used to determine whether the strRate variable contains the…
A: Indexof: It is used to return the first index of the specified character or sub-string. If the…
Q: The strName variable contains the string “Jeffers”. Which of the following statements changes the…
A: Remove method: The remove method is used to delete the characters in the string that is starting…
Q: Which of the following is used to convert a String to a Date object? i) SimpleDateFormat sdf = new…
A: Question. Which of the following is used to convert a String to a Date object? i)…
Q: The strAmount variable contains the string “678.95”. Which of the following statementschanges the…
A: ANS: - option(a) and option(b) are correct. Explanation: - PadRight method pads the end of string…
Q: Which of the following will display $8.00, $8.50, $9.00, and $9.50 in message boxes?a. For…
A: ANS: - Option (b) is the correct one.
Q: Which function is used to check whether a character is tab or space or whitespace control…
A: Given, Choices: isspace() isalnum() iscntrl() isblank() We have to find which function is used…
Q: Which of the following can be used to determine whether the strAmount variable contains exactly 10…
A: A string length() function length of a string. It returns total number of characters to count. The…
Q: Which statement creates a text field, scoreField, that accepts only integer numbers as input? O…
A:
Q: Which of the following assigns the contents of the txtState control, in uppercase, to the strState…
A: This question is saying like which statement you can write, to assign contents of txtState contol to…
Q: Which of the following statements adds together the contents of the intScore1 and intScore2…
A: Answer: The “intScore1” and “intScore2” are the two variables add the contents and then multiplied…
Q: Which of the following statements print set contains all items from setl or set2 not both from the…
A: Given set1=set(["a","b","c"])set2=set(["a","e"]) we want to print the items from set1 or set2 but…
Q: you have the listView and its inserted items, ,, write in the box only the output without any other…
A: Here we have listView and its features included, write in the box only the output without other text…
Q: Which of the following statements invokes the GetGross function and assigns its return value to the…
A: Invoking function: A function procedure returns a value e of the tasks performed. Syntax for…
Q: Which of the following statements can be used to invoke the GetArea function?a. dblArea =…
A: dblArea = GetArea(dblLen, dblWid) is a correct syntax and can be used to invoke the GetArea…
Q: Which of the following statements selects the fourth item in the lstNames control? a.…
A: List boxes: List box controls help to show the list of items which enables the user to choose an…
Q: 32. Which of the following lex variable stores the most recently matched text? O yytext O yyleng О…
A: Given: Which of the following lex variable stores the most recently matched text?
Q: Which of the following is a wrong statement? O Variable is a container that store an value O…
A: Value to variable is given before using it. Therefore ,variable can be used before giving it's value…
Q: Which of the following expressions evaluates to True when the strItem variable contains the string…
A: Explanation: The given string strItem contains both alphabetical and numeric characters. In Visual…
Q: Which of the following assigns the number of columns in the strBooks array to the intNumCols…
A: The GetUpperBound is an multi-mensional array:
Q: Which of the following statements formats the contents of the dblNet variable with a dollar sign and…
A: a. lblNet.Text = dblNet.ToCurrency("C2") This line of code takes dblNet variable and calls the…
Q: Which of the following expressions evaluates to True when the strPart variable contains the string…
A: Solution: option C strPart Like "##[A-Z][A-Z]##" is the correct option.
Q: 2. Which of the following uses add to insert values? Check Box Text Box Combo Box Radio Button
A: Correct answer is Text box. Text box can be used to add to insert values.
Q: Which of the following component is used to allow a user to choose a single choice? O a.…
A: Answer to the question is in step2.
Q: Which of the following is a wrong statement? O Value to a variable should be given before using it O…
A: Here is your answer
Q: Which of the following statements increments the decTotal variable’s value by the value stored in…
A: An accumulator variable is used to add together something. Two tasks are associated with…
Q: Which of the following assigns the value returned by the GetNewPrice function to a variable? a.…
A: GetNewPrice(dblCurrentPrice) It will return some value then in dblNewPrice the returned value is…
Q: Which of the following If clauses compares the string contained in the txtId control with the…
A: The name of the control is txtId. The abbreviation for the state of Georgia is "GA" or "ga". Using…
Q: Which of the following rounds the contents of the dblSales variable to two decimal places? a.…
A: Round function of Math class: In Visual Basic, the Round function of Math Class can be used to…
Which of the following statements changes the contents of the strSocSec variable
from “000-11-2222” to “000112222”?
a. strSocSec = strSocSec.Remove("–")
b. strSocSec = strSocSec.RemoveAll("–")
c. strSocSec = strSocSec.Replace("–","")
d. strSocSec = strSocSec.ReplaceAll("–")
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- You have been hired by PetPals Veterinary Clinic to modify its Bill Calculator application. Upon reviewing the application, you notice that all of the controls have their default names. You also notice that the Calculate button’s code uses the properties of controls in the calculation statements. The total amount a customer owes for all of the services performed during an office visit may contain a decimal place. What data type is best for a variable that will store this value? a. String b. Double c. Integer d. FractionWhich of the following statements adds together the contents of the intScore1 and intScore2 variables and then multiplies the sum by 2, assigning the result to the intTotal variable? a. intScore1 + intScore2 * 2 = intTotalb. (intScore1 + intScore2) * 2 = intTotal c. intTotal = intScore1 + intScore2 * 2d. none of the aboveCs10-8 A19 3Q2122 FALL BIMT) WEEK 4 Math Expression with Variables (with log, exp and trig functions) My Solutions> Code has aiready been provided to create the four variables a, b, c, and d. Add commands to evaluate the following expressions using these variables and assign the results to the indicated variable names: A,a cosc+d Assign the result for A, to the variable Answeri. Note that the values of b, c, and d defined in the given code are all in radians. 4,=d-In/ Assign the result for Az to the variable Answer2. Note the absolute value of the argument to the logarithm. sin +4)) Assign the result for A, to the variable Answer3. Note that e in this expression is the exponential function. Script e H Save C Reset E MATLAB 1 %Define variables a, b, c, and d 2 a = 2.2; 3b = 5.1; 4 C = -3.13; 5 d = 1.8; 6 7 %Enter commands to evaluate the expressions and assign the results 8%to the variable names given in the problem statement. Note the values of the variables 9 %a, b, c, and d are…
- Which delimiter will be selected to change the text 'Happy#go#lucky' in to column? a. tab b. semicolon c. other d. spaceQ3- What is the memory content for the following data section variables? L1 db OAAh, 0BBH L2 dw OCCDDH L3 db 0EEh, OFFH L1 L2 L3. The O’Neill High School Performing Arts Center auditorium contains 20 rows (numbered 1through 20) with 40 seats each (numbered 1 through 40). Write an application that allows auser to continuously enter a row and seat request until a sentinel value is entered. If the rowor seat number is too high, issue an error message. Otherwise, determine whether the seat hasalready been reserved. If so, display an error message; if not, then charge the user $7.50 for aticket and display a running total of the user’s purchase. When the user enters a sentinel,display the number of seats taken and the number still available in the auditorium.
- Q5:Save all of this director's movies and their ratings in a variable called all_movies_ratings, then print this variable.(The director with the most movies you got from the last question.) # your code hereall_movies_ratings = all_movies_ratings[['movie_title', 'imdb_score']] #this will select this columns onlydf['movie_title'] = df['movie_title'].str.replace('Ê','')print("\nQUESTION 5:")print(all_movies_ratings) Q6:Recommend a **random** movie that has a rating of over 8.3. Store the random recommendation in a variable called "rand_goodmovie".What is the title and imdb_score of your recommendation? Here are the steps:1. Query the data ('df' DataFrame) for movies with a rating over 8.3 (imdb_score > 8.3)2. Create a random integer index location to get a single movie recommendation3. Save the random movie recommendation in a DataFrame called 'rand_goodmovie'4. Save the title of the random movie recommendation in a variable "random_title" and print it5. Save the imdb_score of the…The strTotal variable contains the string “***75.67”. Write a statement that uses the TrimStart method to change the variable’s contents to “75.67”.Which of the following is a wrong statement? O Variable is a container that store an value O variable can be used before giving its value O Variable can have different types of values O Variable can change the value
- Which of the following statements generates a random integer from 1 to 25 (including 25)? a. intNum = randGen.Next(1, 25) b. intNum = randGen.Next(1, 26) c. intNum = randGen(1, 25) d. intNum = randGen.NextNumber(1, 26)3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)Q3:Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your variable. Q4:Select the non-USA movies made after 1960 by Hayao Miyazaki.Save the result in a DataFrame called 'miyazaki', then print it. Here are the steps:1. Query the data ('df' DataFrame) based on the following conditions:- Non-USA movies (country_id != 1)- Movies made after 1960 (title_year > 1960)- Movies made by director Hayao Miyazaki (director_id == 46)2. Save the filtered data in a DataFrame called 'miyazaki' and print it Q5:Create a Pivot Table that shows the median rating for each director, grouped by their respective countries. Name your variable'pivot_agg' Q6:How long did the movie Gladiator aim to keep your attention? Save the series with this informationin a variable called 'gladiator_duration', then print it.