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
neonofarm [45]
2 years ago
13

Write a statement to declare a variable x with data type int and initialise with the value 10​

Computers and Technology
1 answer:
nexus9112 [7]2 years ago
6 0

Answer:

int x = 10;

Explanation:

This would work in many languages (C/C++/C#/Java).

You might be interested in
A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in
aleksklad [387]

Answer:

D.

Explanation:

Binary searches are required to be first sorted, since they use process of elimination through halving the list every round until the answer is found. Linear searches just start from the beginning and check one by one.

6 0
3 years ago
Who knows songs that are sad,happy,excited, and calm
anzhelika [568]

sad-

you broke me first

can we kiss forever

love the way you lie

happy-

Say Yes

Valerie

Walking on Sunshine

excited-

who let the dogs out

September

calm-

heather

put your records on

lonely

5 0
2 years ago
Which of the following creates a new table called 'game_scores' with 2 columns 'player_name' and 'player_score'?
DerKrebs [107]

Answer:

e

Explanation:

the valid sql syntax for creating table is

CREATE TABLE table_name (

column_name column_type

)

varchar and int are the valid sql types not string and integer

AS is used in select queries to aggregate results under given name

8 0
3 years ago
Assign True to the variable has_dups if the string s1 has any duplicate character (that is if any character appears more than on
podryga [215]

Answer:

#include <iostream>

using namespace std;

int main()

{

   string s;

   cin>>s;    //reading string

   int i,j;

   bool has_dups=false;

   int n= s.length();

   for(i=0;i<n;i++)  //to check for duplicate characters

   {

       for(j=0;j<n;j++)

       {

           if(j!=i && s[i]==s[j])  //to check if it is matched with itself

           {

               has_dups=true;  //if true no need to check others

               break;

           }

       }

   }

   cout<<has_dups;

   return 0;

}

OUTPUT :

California

1

Explanation:

Above program finds if a character repeat itself in the string entered by user.

4 0
3 years ago
Edhesive 7.1 question 2
photoshop1234 [79]

<u>Explanation:</u>

ASCII, abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication.  Basically, ASCII value is the something which computers understand .

C program that asks the user to enter a single character and then outputs the ASCII number of that character :

#include <stdio.h>

#include <string.h>

int main()  

{  

   char Str[10];

   int i,length;

   printf("Enter the String: ");

   scanf("%s", Str);

   if(strlen(Str) == 1){

       printf(" %c ASCII value is %d",Str[0],Str[0]);

   }

   else{

       printf(" Please enter only single character!! ");

   }

   return 0;  

}

6 0
4 years ago
Other questions:
  • Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7;
    7·1 answer
  • Computers are often referred to as _____.
    15·1 answer
  • The 3 parts of the CPU are
    15·2 answers
  • As in algebra, you can use brackets to override the order of operations Excel follows to perform formula calculations. True or f
    13·1 answer
  • What is the square root of 1600 and 36 ?​
    6·1 answer
  • Where can you find your EFC
    8·2 answers
  • Jennifer works as a clerk in a company. The essential function of her job is typing on a keyboard. If she develops crippling art
    11·1 answer
  • What is a field on a table
    13·1 answer
  • Text,Audio and graphic is entered into the computer using
    9·1 answer
  • ____ is a technology that exists inside another device
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!