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.
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
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.
<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;
}