Question

To execute a statement currently in the buffer, which of the given symbol is used?   A)...

To execute a statement currently in the buffer, which of the given symbol is used?  
A) =
B) /
C) \
D) ;

Question 9 options:

A)

B)

C)

D

Difference between SUBSTR and INSTR on the basis of the given syntax is

INSTR (String1, String2(n,(m))
INSTR returns the position of the mth occurrence of the string 2 in
string1. The search begins from nth position of string1.

SUBSTR (String1 n,m)
SUBSTR returns a character string of size m in string1, starting from nth position of string1.

Question 1 options:

True
False

Homework Answers

Answer #1
To execute a statement currently in the buffer, which of the given symbol is used?  
A) =
B) /
C) \
D) ;

ANSWER: Option (B), '/' executes whatever is in the current "buffer".

---------------------------------------------------------------------------------------------

Difference between SUBSTR and INSTR on the basis of the given syntax is

INSTR (String1, String2(n,(m))
INSTR returns the position of the mth occurrence of the string 2 in
string1. The search begins from nth position of string1.

SUBSTR (String1,n, m)
SUBSTR returns a character string of size m in string1, starting from nth position of string1.

Question 1 options:

True
False

ANSWER: TRUE
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Question 1 Which statement is false about what Data Types defines Question 1 options: What values...
Question 1 Which statement is false about what Data Types defines Question 1 options: What values a variable cannot hold? How much memory will be reserved for the variable? What value a variable will hold? How the program will use the data type? Question 2 Using the structure below, which of the following statements about creating an array (size 20) of structures are not true? struct Employee{     string emp_id;     string emp_name;     string emp_sex; }; Question 2 options:...
Objectives:The focus of this assignment is to create and use a recursive method given a moderately...
Objectives:The focus of this assignment is to create and use a recursive method given a moderately difficult problem. Program Description: This project will alter the EmployeeManager to add a search feature, allowing the user to find an Employee by a substring of their name. This will be done by implementing the Rabin-Karp algorithm. A total of seven classes are required. Employee (From previous assignment) HourlyEmployee (From previous assignment) SalaryEmployee (From previous assignment) CommissionEmployee (From previous assignment) EmployeeManager (Altered from previous...
1. Given the following multi-way if statement, provide a switch statement, using proper java syntax, that...
1. Given the following multi-way if statement, provide a switch statement, using proper java syntax, that will provide the same function. Char grade; String tstmsg; if (grade == ‘A’) {   tstmsg = “Excellent”; } else if (grade == ‘B’) {   tstmsg = “Good”; } else if (grade == ‘C’) {   tstmsg = “OK”; } else {   tstmsg = “Study More”; } 2.Write the following for statement as a while statement. for (k = 0; k < 3; k++) {   System.out.println...
Question 1 (1 point) Which is not necessary in order to do work on an object...
Question 1 (1 point) Which is not necessary in order to do work on an object (use the scientific definition of work)? Question 1 options: There must be a change in momentum. A net force must be applied to the object. The object must undergo a displacement. A component of the force must be in the direction of motion. Question 2 (1 point) The change in gravitational potential energy for a 1.9 kg box lifted 2.2 m is: Question 2...
Write a program of wordSearch puzzle that use the following text file as an input. The...
Write a program of wordSearch puzzle that use the following text file as an input. The output should be like this: PIXEL found (left) at (0,9). ( Use JAVA Array ) .Please do not use arrylist and the likes! Hints • The puzzle can be represented as a right-sized two-dimensional array of characters (char). • A String can be converted into a right-sized array of characters via the String method toCharArray. . A word can occur in any of 8...
Implement the following functions in the given code: def random_suit_number(): def get_card_suit_string_from_number(n): def random_value_number(): def get_card_value_string_from_number(n):...
Implement the following functions in the given code: def random_suit_number(): def get_card_suit_string_from_number(n): def random_value_number(): def get_card_value_string_from_number(n): def is_leap_year(year): def get_letter_grade_version_1(x): def get_letter_grade_version_2(x): def get_letter_grade_version_3(x): Pay careful attention to the three different versions of the number-grade-to-letter-grade functions. Their behaviors are subtly different. Use the function descriptions provided in the code to replace the pass keyword with the necessary code. Remember: Parameters contain values that are passed in by the caller. You will need to make use of the parameters that each...
Please answer the following C question: There is a documented prototype for a function called get_a_line...
Please answer the following C question: There is a documented prototype for a function called get_a_line in the code below. Write a definition for get_a_line—the only function called from that definition should be fgetc. #include <stdio.h> #include <string.h> #define BUFFER_ARRAY_SIZE 10 int get_a_line(char *s, int size, FILE *stream); // Does what fgets does, using repeated calls to fgetc, but // provides a more useful return value than fgets does. // // REQUIRES // size > 1. // s points to...
this is the book name. Data Structures and Abstractions with Java 1) Description: The sample programs...
this is the book name. Data Structures and Abstractions with Java 1) Description: The sample programs in Chapter 1 of your textbook are not complete. They are used for illustration purpose only. The implementation of Listing 1-1 on page 39 is explained in Chapter 2. And, in order to see the result of using it, we will need the following set of files: i. BagInteface.java – the specification only. ii. ArrayBag.java – the implementation of BagInerface.java. iii. ArrayBagDemo.java – a...
11. A simple pendulum undergoes small-angle oscillations. Which of the following pairs (mass, string length) will...
11. A simple pendulum undergoes small-angle oscillations. Which of the following pairs (mass, string length) will oscillate with a period greater than 2.2 seconds? a) (0.50 kg, 1.0 m) b) (0.40 kg, 0.80 m) c) (1.0 kg, 0.50 m) d) (0.80 kg, 0.40 m) e) none of the above answers are correct (numbers 15-17) An ideal horizontal spring-mass system begins oscillation with the mass at x=0 (the spring is relaxed) and moving in the -x direction at 6.00 m/s. The...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue = red + 2 * 5 red++; blue = blue + red; cout << blue; 4 points    QUESTION 2 Is the following statement true or false? The Boolean expression in the following if statement will be true for all values of x in the range from 10 to 20 (including the endpoints) and false for all other values: int x; if (x >=...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT