Question: A . int a = 3 2 , b = 4 0 . 6 ; B . int a = 4 2 ; b =

A. int a=32,b=40.6;
B. int a=42;b=40;
C. int a=32; int b=40;
32. Which of the following is a correct identifier in CH?
A.7var name
C. VAR 1234
B.7VARNAME
33. Which of the following is used as comments for a block of codes in CH?
A. I comment
C. both // comment or /* comment *
D.// comment */
34. Which of the following escape sequence represents carriage return?
A.|r|
C.?????
r
B.
D.\c
35. Which of the following escape sequence represents tab?
A. VIT
C.|b|
B.??tr
What is the size of a boolean variable in C#?
A.1 bit
C.4 bytes
B.1 byte
Which of the following is an exit-controlled loop?
A. for
C. do-while
B. while
D. all of the mentioned
Given the general structure of a for-loop as "for(I;II;IT)(IV)", in which part is termination condition checked?
A. I
B. I
C. II
D. IV
Which of the following correctly declares a single dimensional array in C#?
A. int[] myArr New int(51;
C. int[] myArr = new int[5];
B. intO myArr = new int (5);
Which of the following statements are equal?
D. intO myAr = new int(5);
A. it + and ++i
C.i+ rei and i=i+1
B. i-- and it+
D.i+=I and i=i+1
41. What is the index of the last element of an array with 10 elements?
A.9
C.0
B.8
D. Programmer-defined
42. Which of the following accesses the seventh element stored in a single dimensional uray?
A. array[6];
C. array(7);
B. array[7);
43. The "In' symbol creates:
D. array;
A. New line
C. Space equal to a tab
B. White Space
D. None of them
44. When one loop is nested inside another loop, which of them runs the most number of times?
A. The outer loop
C. Both would run equal number of times
D. None of the above
How many Bytes are stored by Long' Data type in CH net?
A.88
C.2
B.4
D.8
Given the assignment
"int a=0.25 :" what is the
*Console. WriteLine("c="+c);"?
results
A.c=0
B.c=0.2
D.1
C.=0.25
Default Type of number without decimal is?
A. Long Int
B. Unsigned Long
D. Unsigned Int
The expression "X AND Y" is a/an:
A. Arithmetic operation
B. Boolean operation
C. Relational operation
D. Both Boolean and Arithmetic
The correct way of incrementing an operator is:
A. C.a+=1
B.a++1
D.a=+1
Which of the following programming languages are classified as low level languages?
-A. BASIC, COBOL, Fortran
C. C, C++
B. Prolog
D. Assembly languages
Programs written in High Level Languages are converted to machine code using either or
A. Computer, Tablet
B. Microprocessor, Microvontroller
C. Translator, Compiler
D. Compiler, Interpreter
Which of the following if statements correctly executes three instructions if the condition is true?
A.if )(0 :
B. if )(0;
C. If )(0
D. if :
A . int a = 3 2 , b = 4 0 . 6 ; B . int a = 4 2 ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!