1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex787 [66]
3 years ago
12

Pick the simplest line of code to test if the word "BASIC" is stored in the variable text1.

Computers and Technology
1 answer:
mihalych1998 [28]3 years ago
4 0

The simplest line of code to test if the word "BASIC" is stored in the variable text1 is :

if ( text1 == "BASIC" ):

Explanation:

  • The simplest if-statement has two parts, a boolean "test" within parentheses ( ) followed by "body" block of statements within curly braces { }.
  • The test can be any expression that evaluates to a boolean value  true or false. The if-statement evaluates the test and then runs the body code only if the test is true.
  • You should use the equals() method of the String class to compare Strings.
  • == will do an object comparison between the strings in this situation, and although the value may be the same of the String objects, the objects are not the same.
  • Equals: a == b. The double equals sign =. A single symbol a = b would mean an assignment
You might be interested in
PLEASE HELP!!! History abounds with instances in which the work of scientists and artists were affected by the political, religi
Masteriza [31]
Social Media affects them
7 0
3 years ago
What is an example of Big Data?
Y_Kistochka [10]

Answer:

providing real-time data feeds on millions of people with wearable devices

Explanation:

6 0
3 years ago
Write a program to output the following quote by Edsger W. Dijkstra:
adell [148]

Answer:

#include<iostream>

using namespace std;

main(){

cout<<"\*Computer Science is no more about computers \n than astronomy is about telescopes"<<endl;

}

Explanation:

using c++

5 0
2 years ago
Read 2 more answers
Mr. Andrews, the lead programmer for the game New Horizons, hires independent testers to check the game for stability and perfor
NikAS [45]
I think “D”, did I help?
5 0
3 years ago
Read 2 more answers
When you set up social connections, each generic icon in the contacts list and the People Pane will be replaced with the profile
Annette [7]

Answer:

True.

Explanation:

When you established social links, your social media site profile may eliminate almost any generic symbol throughout the list of contacts and the Individuals Pane with profile pic the contact may have placed. Thus, the Users Pane would be exchanged with profile image of the contact while establishing the social connections.

6 0
2 years ago
Other questions:
  • Jacob is a teacher and wants to sort his grades based on Test 1 and then on Test 2.
    14·2 answers
  • I have a bag of trail mix.half of the bag contains peanuts.1/4of the bag is chocolates candies, and 1/4of the bag is dried fruit
    12·2 answers
  • Hiiiiiiiiiii hiiiiiiiiiiiiiiiiiii
    9·2 answers
  • How computer can affect the life of people?
    15·1 answer
  • What is wrong with my code...
    9·1 answer
  • Help please
    13·2 answers
  • Can an SQL function return multiple values? No answer needed, take the points.
    12·1 answer
  • Synapse is not working and is crashing every time you attach it. What should you do?
    13·1 answer
  • _________________ uses soap or detergent to physically remove germs, dirt, and impurities from surfaces or objects.
    13·1 answer
  • Question 5 of 10
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!