Which of the following is not correct variable name? a. first_name а. b. #abc O c. number2 С.
Q: Which Java statement assigns absolute value of (x - 7y) to z. Select one: a. None of the others b.…
A: As per the given question, we have to assign the absolute value of (x-7y) to z. Programming Language…
Q: :Q4: Multiple choice (2) jlahäi Which one of the following (1 ? identifiers is invalid floaT bool…
A: 1. Which one of the following identifiers is invalid? floaT bool Int _o_ ANS: - option(b) bool is…
Q: Use YOUR NAME, SURNAME, and DATE as a variable in your answer lab7 1. Write the program to present…
A: The problem is based on the basics of pointers in C programming language.
Q: How many characters are in each of the following character and string constants? a. '\n' b. 'n' c.…
A: Given:- a. '\n'b. 'n'c. "Mary"d. "M"e. "Mary\n"
Q: "My favorite number is " + 7L Select the correct data type that the above expression evaluates to in…
A: Answer:
Q: Which of the following are not valid assignment statements? A) total = 9;B) 72 = amount;C) yourAge =…
A: Which of the following are not valid assignment statements? A) total = 9;B) 72 = amount;C) yourAge =…
Q: Which of the following variable names are valid , and which are invalid? 1. Number 2. Num 2
A: Here have to determine about correct name from given names.
Q: Which of the following is NOT a valid variable name? O sum!* O LoveMe2 O Student ID O pi314
A: Introduction: Here we are required to select which of the following is not a valid variable name.
Q: Which of the following is not a valid variable name declaration? a) float Pl = 3.14; b) double PI =…
A: Question. Which of the following is not a valid variable name declaration? a) float PI = 3.14; b)…
Q: Which of the following is not a valid variable name declaration? Select one: a. int __3under; b.…
A: Variables naming convention:- Must start with _ or letter. White spaces between words are not…
Q: ( choose the correct answer) 1. Which of the following is invalid character/string declaration? a)…
A: 1) Option a) is an invalid character declaration. Reasons: Single quotes identify a single…
Q: Which of the following is not a word character? a. . b. w Ос. & d. O
A: The valid word characters in java includes Digits from 0-9 Lowercase characters a-z Uppercase…
Q: Which of the following are valid Cidentifiers (variable names): O 1. Ascii%Val O 2._Three 3. Non…
A: EXPLANATION: Identifiers are basically the names that are given to the variables or structures or…
Q: Identify the valid variable from the given choices. O as ten O b. Snineo Oc. SOnine O d. None
A: According to the asked question, the solution is given below with a proper explanation.
Q: Which one is not a valid variable declaration? * O int $first-nb = 100; O int first-nb = 100; O…
A: Rules for naming variables: The first character must be a letter or an underscore(_). You can't…
Q: Which of the following is correct declaration statement? Select one: O a. int num=new num[5]| O b.…
A: In Java, array is an object which contains elements of similar data type. Syntax for declaring an…
Q: Which one of the following (2 statements use to input the value ? of the variable day
A: required:
Q: Which one of the following is a valid keyword in the C programming language? a. variable O b.…
A: As given, we need to find out which one of the following is a valid keyword in the C programming…
Q: Which of the following are OK names to use for a variable? If not, explain why? 1. SUM 2. GRAND…
A: Required:
Q: Which symbol is used to initialise a variable? O init O O O O
A: Symbol Means = to initialize a variable == Equal to => Greater than or equal to init it…
Q: 1. Which of the following expressions will return the square root of the number 16? a. pow(16.0, 2)…
A: sqrt(double): The C++ built-in function sqrt takes a double value as an input argument and returns…
Q: Q.3): Which of the following names for string variables are correct? 1) AGE$ 2) COLLEGE 3) $sum 4)…
A: let us see the answer:- The correct answer is:- 2) College
Q: Which statement is equivalent to the following? number += 1; اختر احدى الدجابات None of these O…
A: If statement is in the form variableName = variableName operator expression/value; Then its…
Q: Which of the following correctly identifies what is :wrong with the code snippet below : if y > 300…
A: Please find the answer below :
Q: Which of the following is NOT a valid variable declaration: a. int x = 3; b. double x, y, z; c.…
A: here in given question ask for which variable declaration is incorrect.
Q: Which of the following data types is NOT a number? O a. float O b. boolean O c. integer O d. complex…
A: A data type defines type of data for variable which stores value.
Q: Which of the following solves the given problem? Problem: Create a program that will determine if…
A: Required: Problem: Create a program that will determine if an input character is a number, a letter,…
Q: DimI as integer, jas integer or l=1 to N.text =l+1 =1 pr j=1 to 2*1 =F*j extj e.Print F extI The…
A: Here we have two loops i and j In the second loop the statement F=F*j calculates product.
Q: Identify the correct variable name from the following? O a. quantity^ O b. 9quantity O c. Quantity9…
A: A variable name can only have letters (both uppercase and lowercase letters), digits and underscore.…
Q: Which of the following is not valid C variable name? a. float deduction; O b. int -number; c. int…
A: In C language variable can only contain letters, numbers or underscore. And it can start with one of…
Q: Question 3 Which of the following statements is true? A Variable names should not have more than 31…
A: The answer is option 1)variable name should not have more than 31 character.
Q: Which of the following can not be used to convert a string of digits into anumber?a) int b) float c)…
A: Lets see the solution.
Q: Which of the following is not a data type? а. Теxt b. Integer С. Вoolean d. String What is the…
A: To find the solution for the given question.
Q: Identify the correct variable name from the following? O a. ^quantity O b. 9quantity O c. Quantity9…
A: The identifier is a name given to the variable, structure, or class names. Variable is an identifier…
Q: Which of the following statements could potentially change the value of variable27 O a. product -…
A: The one changing the value of variable 2 is detailed in step 2.
Q: Which of the following is not a correct variable type? (a) Float (b) Real…
A: Given: Which of the following is not a correct variable type? (a) Float (b) Real…
Q: Which one of the following operators is a logical operator? O a. &It;> O b. or O…
A: Correct answer is Option b. or "or" is a logical operator. It is used to connect two or more…
Q: Which of the following statements is correct, where the dömain numbers O a Vyaz(xy 1) %3D O b. All…
A: Given:-
Q: Which of the following variable names are invalid? Select one: O a. $month_1 O b. $monthl O c.…
A: In PHP there are certain rules to write the variable names.
Q: 1. Which of the following is an invalid variable name? a) abc Б) а bc c) abc_1 d) float
A: The solution to the given problem is below.
Q: which of the following words are legal variable names in C++, and which are not? And why? x1…
A: Given:- which of the following words are legal variable names in C++, and which are not? And why?…
Q: نقطتان )2) Which one of the following is an * ?incorrect variable name a b O
A: Rules for creating variable names: A variable name can be any combination of 1 to 31 alphabets,…
Q: -Which of the following cannot be used as a variable? Oali Oint Oveli Oesle Okirkdokuz…
A: The problem is based on words that cannot be taken as variables.
Q: Which of the following is the valid variable name? a. $varb b. varc c. for d. 4abc
A: 1) Variable names are made up of letters (upper and lower case) and digits. We need to follow some…
Q: ich variable is different dos the two
A: Lets see the solution.
Q: Which one of the following is incorrect string declaration? O a. char m[]="exam"; O b. char…
A: Answer: b
Q: Which of the following cannot be a variable? a. __init__ b. in c. it d. on
A: b. in
Q: Which of the following are logical (Boolean) operators?a. && b. != c. ! d. || e. <>
A: Logical Boolean operators: The below are the logical Boolean operators: !- Logical negation &-…
Q: 14 - Which of the following for statements would be executed the same number of times as the…
A: Given code snippet Int num=10; While (num>0){ Console.WriteLine (num); num--: } The…
Q: Which of the following is the data type used to hold decimal numbers? a. double b. int c. byte D.…
A: In given question,, we have asked which of the following is the data type used to hold decimal…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- please can you check check my code? c++(turboC) #include<stdio.h>main(){int eno;char enam[20],sc,pc,s,p;float nhw,rph,gp,ot,sss,med,wtax,ins,td,np;clrscr();printf("Enter EMPLOYEE NO.:");scanf("%d",&eno);print("Enter EMPLOYEE NAME:");scanf("%s",&enam);printf("Enter STATUS CODE:");sc=getche();printf("\nEnter POSITION CODE:");pc=getche();printf("\nEnter NO. OF HRS. WORKED:");scanf("%f",&nhw);printf("\nEnter RATE PER HOUR:");scanf("%f",&rph);clrscr();gotoxy(38,2);printf("ABC Company");gotoxy(39,3);printf("Cebu City");gotoxy(35,6);printf("*** PAY SLIP ***");gotoxy(10,9);printf("EMPLOYEE NO. : %D",eno);s=toupper(sc);switch(s){case 'S' : gotoxy(50,9); printf("STATUS: Single"); break;case 'M' : gotoxy(50,9); printf("STATUS: Married"); break;case 'H' : gotoxy(10,11); printf("POSITION: Department Head"); break;case 'C' : gotoxy(10,11); printf("POSITION: Officer in Charge"); break;defualt : gotoxy(10,11);…Question 6 sm .Write in C code please starting with #include <stdio.h> Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this lineNUMBER 7 Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and values are posted here: r1 = outer radiusr2 = inner radiusC1 = outer circumferenceC2 = inner circumferenceA1 = area of circle of r1, area within outer circleA2 = area of circle of r2, area within inner circleA0 = shaded area, outer area minus inner areaA0 = A1 - A2π = pi = 3.1415926535898√ = square root 3. Example of the code is this Annalus Calculator https://www.calculatorsoup.com/calculators/geometry-plane/annulus.php 4.. Please don't reject CODE THE FOLLOWING (SEE ATTACHED PHOTO):
- #include <iostream>#include <iomanip>using namespace std;int main(){cout << "Welcome to the Temperature Tool of Layla !\n" << endl << endl;double tf1, tf2, tf3, tf4, tf5, tf6, tf7; double tc1, tc2, tc3, tc4, tc5, tc6, tc7; cout << "Please enter 7 temperatures in Fahrenheit: " ; cin >> tf1 >> tf2 >> tf3 >> tf4 >> tf5 >> tf6 >> tf7 ; tc1=5*(tf1-32)/9;tc2=5*(tf2-32)/9;tc3=5*(tf3-32)/9;tc4=5*(tf4-32)/9;tc5=5*(tf5-32)/9;tc6=5*(tf6-32)/9;tc7=5*(tf7-32)/9;cout <<"degree F" <<setw(35) << "degree C" <<endl;cout <<fixed<< setprecision(1)<<tf1 <<setw(35)<<fixed << setprecision(1)<< tc1 <<endl;cout <<fixed<< setprecision(1)<<tf2 <<setw(35)<<fixed << setprecision(1)<< tc2 <<endl;cout <<fixed<< setprecision(1)<<tf3 <<setw(35)<<fixed << setprecision(1)<< tc3…Hello I needed some with with this JavaScript problem please function _one(pwd)Create a JavaScript function that meets the following requirements:• Is passed a string representing a potential password• The function determines if the password meets the following requirementso The length of the password is between 8 – 12 characterso Contains at least 1 number (numeric character)o Contains at least 1 special character▪ Special characters are punctuation characters that are present on standard keyboard namely any character encapsulated within the following double quotes“(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)”o Contains at least 1 capital letter• The function should NOT employ the use of regular expressions to solve the problem• The function also displays the result (console log) of its password validation as illustrated below.• The function returns a Boolean back to the caller indicating valid or not.lst = [10, 20, 30, 40, 50, 60, 70, 80] def f(lst, seek): for i in range(len(lst)): if lst[i] == seek: return i # Return position immediately return None f(lst,50) What is the output of this code part? A)3 B)4 C)5 D)none
- #include <iostream> using namespace std; int main() { cout << "San Jose, California forecast high temperatures: " << endl; int temp[5]= {86,81,73,77,79}; cout << "Monday, September 26, " << temp[0] << " degrees" << endl; cout << "Tuesday, September 27, " << temp[1] << " degrees" << endl; cout << "Wednesday, September 28, " << temp[2] << " degrees" << endl; cout << "Thursday, September 29, " << temp[3] << " degrees" << endl; cout << "Friday, September 30, " << temp[4] << " degrees" << endl; int minimum = temp[0]; int maximum = temp[0]; for (int i =0; i<5; i++) { if (minimum > temp[i]) { minimum = temp[i]; } if (maximum < temp[i]) { maximum = temp[i]; } } cout << endl; cout << "The high for the week is " << maximum << endl; cout << "The…1.0Write a PHP echo statement to find out the user who owns the current script being run. 2.Complete the following code such that it determines when a script was last changed. echo date('g:i a, j M Y',___);C++ dont use cinn cout thanks!
- I need "comments" fo this whole code, for my better understanding. comment for every line. also i want this code to be separated in .cpp and. hpp files. thank you #include <iostream>#include <conio.h>#include <windows.h>#include <dos.h>#include <time.h>#include <graphics.h> #define MAXSNAKESIZE 100#define MAXFRAMEX 119#define MAXFRAMEY 29 using namespace std; HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);COORD CursorPosition; void gotoxy(int x, int y){CursorPosition.X = x;CursorPosition.Y = y;SetConsoleCursorPosition(console, CursorPosition);}void setcursor(bool visible, DWORD size) // set bool visible = 0 - invisible, bool visible = 1 - visible{if(size == 0){size = 20; // default cursor size Changing to numbers from 1 to 20, decreases cursor width}CONSOLE_CURSOR_INFO lpCursor;lpCursor.bVisible = visible;lpCursor.dwSize = size;SetConsoleCursorInfo(console,&lpCursor);} class Point{private:int x;int y;public:Point(){x = y = 10;}Point(int x,…Write a function named “CheckAgainstPasswordRules” that accepts a password(string) and return true if that passwordmeets all thefollowing rules: •Length is equal or greater than 8 •Have at least one uppercase character •Have at least one lowercase character •Have at least one special character: ‘!’, ‘@’, or ‘#’ •Contain no spaces(blanks) Can you use C++ to wite this? Thanks!Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and values are posted here: r1 = outer radiusr2 = inner radiusC1 = outer circumferenceC2 = inner circumferenceA1 = area of circle of r1, area within outer circleA2 = area of circle of r2, area within inner circleA0 = shaded area, outer area minus inner areaA0 = A1 - A2π = pi = 3.1415926535898√ = square root 3. Please don't reject CODE THE FOLLOWING: Calculate and display: outer circumference, inner circumference, area enclosed by the outer circle, area enclosed by the inner circle, area of the shaded region Given: outer radius r1 inner radius r2. Formula to be used: Outer circumference = C1=2πr1, inner circumstance = C2=2πr2, enclosed by the outer circle = A1=πr12, the area enclosed by the inner circle= A2=πr22, rea of the shaded region= A0=A1-A2