Question: The execution of a C# program begins with A . Main 0 B . get 0 C . class 0 D . display 0 Computer

The execution of a C# program begins with
A. Main0
B. get0
C. class 0
D. display0
Computer Programming Languages can be classified based on all the following except:
A. Levels of Abstraction.
B. How codes are Translated to Machine Code
C. Based on Programming Paradigm
D. How long a takes a program to run
"Console. WriteLine0" is a
A. function
C. literal
B. keyword
D. class
The result of executing "Console. WriteLine("UMaT"+"Tarkwa")"is a
A. UMaT
C. UMaT Tarkwa
B. Tarkwa
D. UMaT. Tarkwa
Low Level languages are
A. Machine Independent
B. Easy for Humans to understand
C. Difficult for humans
D. Too low for modern computers
6. Which of the following statements is true?
A. A variable name in C# cannot contain a number
B. A variable name in C# cannot contain an underscore
C. A variable name in C# can contain an underscore
D. CH is a first-generation programming language
7. An Int variable occupies bytes in memory.
A.1
C.4
B.2
D.8
8. A bool variable occupies
bytes in memory.
A 1
C.3
B.2
D.1.5
9.CH does not support
statement.
A.go
C. break
B.if
D. continuc
10. Which is an entry-controlled looping statement?
A. switch
C. do.while
B. while
D. break
11. Which of the following structures is not supported by CH?
A. for-loop
C. all-while loop
B. While-loop
D. do-while loop
is a collection of elements in contiguous locations in computer's memory.
A. Nested loop
C. Class
B. Struct
D. Array
13._operator returns the reminder of the arithmetic operation.
A./
C. &
B. I
D.%
The default value for a Boolcan variable is
A.0
B.-I
C. null
D. false
15 is a typical Example of a third Generation language
A. Machine Language
C. SOL
D. Prolog
In Ci, input can be read from the user using
method.
A. ReadLine0
C. getlaput0
B. Writeline0
D. showinput0
The result of executing "pow(2,3)" in C= is
A.2
B.3
C.9.
Which of the following statements correctly tells the differences between * and 'win CH?
A."' operator is used to assign values from one variable to another variable Whiles * operator is used to compare value between two variables
B.'= operator is used to assign values from one variable to another variable Whiles operator is used to compare value between two variables
C. No difference between both operators
D. None of the mentioned
19. In a situation where inputs can be one of only two possibilities, Which datatype should be most preferred?
A. bool
C. char
B. String
D. long
20. Select output of the given set of Code: static woid Main(string() args)( String name s"UMaT
Console. Writel.ine(Good Morning
"+ name): )
A. UMaT
B. Good Morning
C. Good Morning UMaT
D. Good Morning name
21. What is the result of "5%2" in CA?
A.1
C. S
B.2.5
D.0
One common operator for concatenating two strings in C# is
A.+
B. &&
D*
23. Which statement is correct about following set of code? int [,]a=((5,4,3),(9,2,6));
A.'a' represents 1-D array of S integers
B. a.GetUpperBound(0) gives 9
C.'a' represents rectangular array of 2 columns and 3 arrays
D. c.GetUpperBound(0) gives 9
24. Which of the following is NOT an Arithmetic operator in C#?
B.+
D.%
25. The output of "bool a a= true, b= false; Console. WriteLine(a&&b will be:
A.0
C. True
B.1
D. False
26. The output of "bool a= true, b= false, Console. WriteLine(allb):" will be:
A.O
B.1
D. False
27. An
is a symbol that tells the computer to perform certain mathematical or logical
manipulations
A. Operator
B. Expression
28. The conditional statement. q, can only test for equality, whereas q, can evaluate any type of Boolean expression.
A. if, switch
C. while, it
B. switch. if
D. if, while
29. The
statement at the end of each block signals the end of a particular case and causes.
an exit from the switch statement, transferring the control to the statement following the switch.
A. switch
C. continue
D. default
30. Which of the following can best replace a "switch-case-default" statement?
A.if
C. do-while
B. if-else
D. while
31. Which of the following is a correct declaration of Values to variables a and 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
The execution of a C# program begins with A .

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!