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
Write a program that reads in a line consisting of a student’s name, Social Security number,...
Write a program that reads in a line consisting of a student’s name, Social Security number, user ID, and password. The program outputs the string in which all the digits of the Social Security number and all the characters in the password are replaced by x. (The Social Security number is in the form 000-00-0000, and the user ID and the password do not contain any spaces.) Your program should not use the operator [] to access a string element....
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 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:...
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...
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...
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...
Use Python to Complete the following on a single text file and submit your code and...
Use Python to Complete the following on a single text file and submit your code and your output as separate documents. For each problem create the necessary list objects and write code to perform the following examples: Sum all the items in a list. Multiply all the items in a list. Get the largest number from a list. Get the smallest number from a list. Remove duplicates from a list. Check a list is empty or not. Clone or copy...
AP Computer Science A FRQ SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE...
AP Computer Science A FRQ SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN JAVA. Assume that the classes listed in the Java Quick Reference have been imported where appropriate. Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied. In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT