menna katiyata podi Quiz ekak

meka ape skul eke dunna 1st basic Quiz eka

onna patan gannwa

isselama MCQ 10k tiyenwa
4k writing tiyenwa

total marks=21
balanako serama karala kiyak tiyeda kiyala,

mama nam 21/21 gattha

me post eke MCQ dala anith eke writen question 4 danam
MCQ
1.Which is another name for package?
a. object
b. library
c. method
d. string
2.Which is a set of guidelines for writing an application?
a. algorithm
b. code conventions
c. comments
d. class
3.Which statement displays Hello, world! on the screen?
a.
System.out.println("Hello, world!");
b.
system.println("Hello, world!");
c.
System.println('Hello, world!');
d.
System.out.println('Hello, world!');
4.Which is used to enclose single or multiline comments?
a. \* *\
b. /* */
c. // //
d. \\ \\
5.What effect does \n have when included in an output string?
a. A
\n is displayed in the output.
b. A
N is displayed in the output.
c. A tab (8 spaces) is displayed in the output.
d. Output is moved to the next line.
6.What effect does \t have when included in an output string?
a. A
\t is displayed in the output.
b. Output is moved to the next line.
c. A
T is displayed in the output.
d. A tab (8 spaces) is displayed in the output.
7.The main() method is defined as
a.
public static void main(string[] args)
b.
public static void Main(String[] args)
c.
public static void main(String[] args)
d.
public static main(String[] args)
8.Which describes the output displayed by the statement:
System.out.format("%-10s %10s %8s", "Item", "Quantity", "Cost\n");
a. Item,Quantity, and Cost will be left aligned.
b. Item will be left aligned, Quantity and Cost will be right aligned.
c. Item, Quantity, and Cost will be right aligned.
d. Item will be right aligned, Quantity and Cost will be left aligned.
9.What does the following symbol indicate in a flow chart?
a. Process
b. Start or End
c. Input or Output
d. Selection
10.What does the following symbol indicate in a flow chart?
a. Start or End
b. Process
c. Selection
d. Input or Output