Which of the following is not mandatory in variable declaration? A) a semicolon
B) an identifier
C) an assignment
D) a data type

1 Answer

Answer :

C) an assignment

Related questions

Description : In Java variables, if first increment of the variable takes place and then the assignment occurs. This operation is also called ............................. . A) pre increment B) post increment C) incrementation D) pre incrementation

Last Answer : A) pre increment

Description : Which one of the following describes the syntax of prolog program ? I. Rules and facts are terminated by full stop (.) II. Rules and facts are terminated by semicolon (;) III. Variables names must start with upper case alphabets. ... alphabets. Codes : (A) I, II (B) III, IV (C) I, III (D) II, IV

Last Answer : (C) I, III

Description : What can you say about the following statements? I. XML tags are case-insensitive. II. In JavaScript, identifier names are case-sensitive. III. Cascading Style Sheets (CSS) cannot be used with XML. IV. All well-formed ... IV are false. (3) only I and III are false. (4) only II and IV are false. 

Last Answer : Answer: Marks to all

Description : Describe the following terms: (i) Keyword (ii) Identifier (iii) Variable (iv) Constant

Last Answer : (i) Keyword: Keywords are special words in C programming which have their own predefined meaning. The functions and meanings of these words cannot be altered. Some keywords in C Programming are if, while, ... or a string literal. There are enumeration constants as well. Example: 121 234 3.14 

Description : If the account opened with initial deposit exceeding Rs 50000/- _____ is mandatory a) Pan Card photocopy b) Declaration in form 60/61 c) Both the above d) Either A or B

Last Answer : d) Either A or B

Description : MDP stands for A) Master Development Plan B) Master Design Program C) Mandatory Database Program D) Master Database Plan

Last Answer : A) Master Development Plan

Description : The compiler converts all operands upto the type of the largest operand is called (A) Type Promotion (B) Type Evaluation (C) Type Conversion (D) Type Declaration

Last Answer : (A) Type Promotion 

Description : In XML, DOCTYPE declaration specifies to include a reference to ............ file. (A) Document Type Definition (B) Document Type Declaration (C) Document Transfer Definition (D) Document Type language

Last Answer : (A) Document Type Definition

Description : State true or false. i) comparisons precede logical operations in java ii) assignment operations succeed increment operations iii) arithmetic operations succeed comparisons iv) x precede + A) i-true, ii-true, iii-false, ... false, ii-true, iii-false, iv-false D) i-true, ii-false, iii-false, iv-true

Last Answer : A) i-true, ii-true, iii-false, iv-true

Description : Which of the following operates cannot be overloaded? i) Size of operator (sizeof) ii) Scope resolution Operator iii) Conditional operator (?:) iv) Assignment Operator (=) A) i, ii, iii only B) ii, iii, iv only C) i, iii, iv only D) all i, ii, iii, iv

Last Answer : A) i, ii, iii only

Description : Match the following. i) Mutual exclusion a) A process may hold allocated resources while waiting assignment. ii) Hold and wait b) No resource can be forcibly removed from a process holding it. iii) No preemption c) Only one process may use ... , ii-c, iii-b C) i-b, ii-c, iii-a D) i-c, ii-a, iii-b

Last Answer : D) i-c, ii-a, iii-b

Description : Which of the following is not a binary operator in relational algebra? A) Join B) Semi-Join C) Assignment D) Project

Last Answer : D) Project

Description : Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general? a) Insertion sort b) Selection sort c) Heap sort d) None

Last Answer : b) Selection sort

Description : The given maximization assignment problem can be converted into a minimization problem by (A) subtracting each entry in a column from the maximum value in that column. (B) subtracting each entry in the table ... value in that column. (D) adding maximum value of the table to each entry in the table.

Last Answer : (B) subtracting each entry in the table from the maximum value in that table.

Description : In the Hungarian method for solving assignment problem, an optimal assignment requires that the maximum number of lines that can be drawn through squares with zero opportunity cost be equal to the number of: (A) rows or columns (B) rows+columns (C) rows+columns-1 (D) rows+columns+1

Last Answer : (A) rows or columns

Description : Which of the following operators cannot be overloaded in C/C++? (1) Bitwise right shift assignment (2) Address of (3) Indirection (4) Structure reference

Last Answer : Answer: 4

Description : A data file of 1,00,000 characters contains only the characters g-l, with the frequencies as indicated in table:  using the variable-length code by Huffman codes, the file can be encoded with (A) 2,52,000 bits (B) 2,64,000 bits (C) 2,46,000 bits (D) 2,24,000 bits

Last Answer : (D) 2,24,000 bits 

Description : Find the false statement: (A) In Modern Cryptography, symmetric key algorithms use same key both for Encryption and Decryption. (B) The Symmetric cipher DES (Data Encryption Standard) was widely used ... and 124 bits. (D) Public key algorithms use two different keys for Encryption and Decryption.

Last Answer : (C) The AES (Advanced Encryption Standard) cryptosystem allows variable key lengths of size 56 bits and 124 bits.

Description : Which of the following is not a declaration of the dictionary? a) {1: ‘A’, 2: ‘B’} b) dict([[1,”A”],[2,”B”]]) c) {1,”A”,2”B”} d) { }

Last Answer : c) {1,”A”,2”B”}

Description : What does the following declaration mean ? int (*ptr) [10]; (A) ptr is an array of pointers of 10 integers. (B) ptr is a pointer to an array of 10 integers. (C) ptr is an array of 10 integers. (D) none of the above.

Last Answer : (B) ptr is a pointer to an array of 10 integers.

Description : In IPv6, the _______ field inthe baseheader and thesender IP address combineto indicate aunique path identifier for aspecific flow of data. A) flow label B) nextheader C) hoplimit D) destination IP address

Last Answer : flow label

Description : is which initializes the value of variable: a. Assignment expression b. Condition value Cc. Increment/decrement d. None of these

Last Answer : a. Assignment expression

Description : An assignment problem is a special case of transportation problem, where a. Number of rows equals number of columns b. All rim conditions are 1 c. Values of each decision variable is either 0 or 1

Last Answer : D.variable is either 0 or 1

Description : Which of the following control techniques available to the researcher controls for both known and unknown variables? a. Building the extraneous variable into the design b. Matching c. Random assignment d. Analysis of covariance

Last Answer : c. Random assignment

Description : Give the rules for variable declaration?

Last Answer : The rules for variable declaration in C are given below : A variable name consists of alphabets, digits and the underscore (_) character The length of variable should be kept up to 8 characters ... space and commas are not allowed Any reserved word (keyword) cannot be used as a variable name.

Description : Is this the correct use of the semicolon?

Last Answer : Yes, a colon preceeds a list.

Description : Punctuation problems. comma and semicolon rules. help please. when to use with 'and'?

Last Answer : Comma to break a sentence, semicolon when the sentence could either end there (period) or go on, requiring a break (comma); hence the using of both in one punctuation mark. I usually do commas before my ... but I'm not sure if there is a specific rule for this. Good luck learning all of the rules!

Description : Anyone interested in an homage to the semicolon?

Last Answer : Ironic, since I recently found myself concerned about how long it’s been since I’ve used a semicolon; I guess my fears can be put to rest.

Description : which of the following sentences needs a semicolon to be correct? -General Knowledge

Last Answer : The sentence that needs semicolon to be corrected is: Jerry loves tennis; he plays every day.

Description : Don't know the semicolon shortcut? Thank you

Last Answer : For example, Alt 59

Description : In grammar, when should I use a semicolon?

Last Answer : Use a semicolon when you link two independent clauses with no connecting words. You can also use a semicolon when you join two independent clauses together with one of the following ... join independent clauses): however, moreover, therefore, consequently, otherwise, nevertheless, thus, etc.

Description : In which of the-following situations would it be appropriate to use a semicolon?

Last Answer : To replace conjunctions and, or, but and to connect the main clauses in a compound sentence

Description : Look at the spaces indicated in the sentences below. Where would it be appropriate to put a semicolon (;)?

Last Answer : in the name of freedom

Description : Look at the space indicated in the sentences below. Where would it be appropriate to put a semicolon (;)?

Last Answer : She was prevented from fleeing down the fire escape; the window at the top of the stairs was bolted shut.

Description : True or false If two independent clauses are connected by a semicolon, the dotted line is slanted from one verb to the other.?

Last Answer : False. The correct answer is "If two independent clauses are connected by a semicolon, the dotted line goes straight from one verb to the other." (A+)

Description : To indicate a keyword as an exact match, which of the following should be used? A. Quotations B. Brackets C. Parenthesis D. Semicolon

Last Answer : B. Brackets

Description : What do you press to enter the current date in a cell? 1) CTRL +; (semicolon) 2) CTRL + SHIFT + :(colon) 3) CTRL + F10 4) CTRL + F11

Last Answer : 1) CTRL +; (semicolon)

Description : Define what is the use of a semicolon (;) at the end of every program statement?

Last Answer : It has to do with the parsing process and compilation of the code. A semicolon acts as a delimiter so that the compiler knows where each statement ends and can proceed to divide the statement into smaller elements for syntax checking.

Description : What is a class variable?

Last Answer : A: Instance variables having the keyword ‘static’ before it is a class variable. For every object there is just one copy of the variable made.

Description : How do you make a variable into a constant?

Last Answer : A: By adding the keyword ‘final’ before a variable declarations. Example: final int a = 5;

Description : What is a variable?

Last Answer : A: A variable is a named memory location whose value can change.

Description : State true of false. i) Public can only be assigned to class ii) Protected protects a statement iii) Protected method is never accessible outside the package iv) Friendly variable may be accessible outside class A) i- ... -false, ii-true, iii-false, iv-false D) i-true, ii-false, iii-false, iv-true

Last Answer : C) i-false, ii-true, iii-false, iv-false

Description : If a variable is declared final, it must include ...................... value. A) integer B) no C) initial D) float

Last Answer : C) initial

Description : A variable is defined within a block in a body of a function. Which of the following are true? A) It is visible throughout the function. B) It is visible from the point of definition to the end ... visible from the point of definition to the end of the block. D) It is visible throughout the block.

Last Answer : D) It is visible throughout the block.

Description : Which of the following is true about the static member variable in C++. i) It is initialized to zero when the first object of its class is created. Other initialization is also permitted. ii) It is visible only within ... , ii-True B) ii-False, ii-True C) i-True, ii-False D) i-False, iii-False

Last Answer : B) ii-False, ii-True

Description : Which of the following cannot be passed to a function? A) Reference variable B) Arrays C) Class objects D) Header files

Last Answer : D) Header files

Description : Which of the following is FALSE in C? A) Keywords can be used as variable names B) Variable names can contain a digit C) Variable names do not contain a blank space D) Capital letters can be used in variables

Last Answer : A) Keywords can be used as variable names

Description : Assume that variable x resides at memory location 1234, y at 1111 and p at 2222. Int x=1, y=2, *p; p=&x; y=*p; What will be the value of y after execution of above code? A) 2 B) 1 C) 1234 D) 1111

Last Answer : C) 1234

Description : In C a variable cannot contain A) Blank Spaces B) Decimal Point C) Hyphen

Last Answer : A) Blank Spaces