answersLogoWhite

0


Best Answer

string-literal

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What term is used for a string that appears in the actual code of a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a program that stores vowels in an array When you program is given a character it should indicate whether the character is vowel or not?

That's easy to do!This script will get the POST data from an HTML form and check if it is a vowel.


How do you use MID function in qbasic?

...QBASIC program code... name$="Jack" startCharPos%=2 howManyChars%=2 PRINT MID$(name$,startCharPos%,howManyChars%) ...output... ac EXPLANATION The MID$() function allows you to select characters from out of a string. In the above case the string is,... name$="Jack" ...where... J= string position 1 a= string position 2 c= string position 3 k= string position 4 ...thus, if we select MID$(name$,2,2)... ...this code is actually saying...select from the name...the character which begins at position 2 = a/and, extract 2 characters going along from there... = ac.


Write a java program to input a string and find the total number of uppercase letters in the string?

The code is given at the bottom. This code requires JAVA 1.5+ version to be compiled.This is very simple program. We ask user to input string and later we just iterate through all the character in the string. We use Character.isUpperCase() static method to check is the character we are checking is upper case if so we increase count variable by one. After iteration is done we print count variable and application quits.Note: for statement was introduced in 1.5 JAVA version.Example of usage:david-mac:~ david$ java TestEnter string: This is A Test String.Your string has 4 upper case letters.-------------------------import java.io.*;import java.lang.*;public class Test{public static void main(String[] args)throws IOException{BufferedReader in = new BufferedReader(new InputStreamReader(System.in));System.out.print("Enter string: ");String userString = in.readLine();int count = 0;for (char ch : userString.toCharArray()){if (Character.isUpperCase(ch)){count++;}}System.out.println("Your string has " + count + " upper case letters.");}}


Do Example program for c using string?

If this is a homework assignment, you really should consider doing it yourself#include #include int main (int argc, char *argv[]) {printf ("Hello world!\n");return 0;}


Create a program in java that will accept 2 strings and display in concatenated form?

class demo { public static void main(String[] args) { if(args.length == 2) { System.out.println(args[0] + args[1]); } else { System.out.println("Usage: demo Str1 Str2"); } }

Related questions

What is the term used for a string that appears in the actual code of a program?

string-literal


What is a computer term called patch?

A patch is a string of code that fixes a glitch or hole in a computer program.


How you convert int to string in jsp?

The same way you would in a regular java program. int i = 10; String s = i + ""; after the above line of code the variable s will have "10" as a string value...


What is the meaning of RAALOTBYRO?

"RAALOTBYRO" appears to be a random sequence of letters and does not have a specific meaning or definition in English. It may be an acronym, a code, or a random string of characters.


What does writing code mean in programming?

It means typing the actual instructions for a routine or program. This is, writing the program itself, as opposed to other programming tasks like design.


What is the solution of error code 80072e3?

Without knowing which program or system generated the error it is impossible to say. The error code is just a number. Many programs and systems may produce the exact same error code but its actual meaning is specific to the program or system that generated it.


Write a C program to convert an upper case word to lower case and vice-versa.?

You would use the ToUpper and ToLower functions. string name = "XVengeance"; string upperName = name.ToUpper(); string lowerName = name.ToLower(); Console.WriteLine(upperName); Console.WriteLine(lowerName); Console.ReadLine(); I don't think I'm supposed to do your homework for you, but this code should get you started on making a more dynamic program.


Write a program that stores vowels in an array When you program is given a character it should indicate whether the character is vowel or not?

That's easy to do!This script will get the POST data from an HTML form and check if it is a vowel.


What is the difference between a formal programming language and a pseudo-code?

A programming language is a well defined set of rules and commands which can be combined to tell a computer what to do as a computer program. Pseudo-code is like a "rough draft" of a program where the programmer outlines what they want the computer to do, but they do not write any actual code. While there are various definitions for "proper" pseudo-code, most programmers just write in their own combinations of English (or their speaking language of choice) and various bits of actual code from real programming languages.


What is compile time and run time?

Compile time is when the compiler translates your source code into computer language. Run time is when the actual program runs.


What is compiled time and run time?

Compile time is when the compiler translates your source code into computer language. Run time is when the actual program runs.


How do you use MID function in qbasic?

...QBASIC program code... name$="Jack" startCharPos%=2 howManyChars%=2 PRINT MID$(name$,startCharPos%,howManyChars%) ...output... ac EXPLANATION The MID$() function allows you to select characters from out of a string. In the above case the string is,... name$="Jack" ...where... J= string position 1 a= string position 2 c= string position 3 k= string position 4 ...thus, if we select MID$(name$,2,2)... ...this code is actually saying...select from the name...the character which begins at position 2 = a/and, extract 2 characters going along from there... = ac.