Basic Coding

#learnwithme comment your topic

5 months ago | [YT] | 0

Basic Coding

What will be the output of the following Java program?

class Output

{

public static void main(String args[])

{

int arr[ ] = {1, 2, 3, 4, 5};

for ( int i = 0; i < arr.length - 2; ++i)

System.out.println(arr[i] + " ");

}

}

2 years ago | [YT] | 0

Basic Coding

What will be the output of following pseudo code.
int a=2;
print(++a);
print(a++);

2 years ago | [YT] | 0

Basic Coding

What will be the output of the below pseudo code.

main()
{
int num = 987;
int rem;
while(num!=0)
{
rem = num % 4;
num = num / 10;
}
printf("%d",rem);
}

2 years ago | [YT] | 0

Basic Coding

What will be the output of the following pseudocode for a=9 , b=7 ?
Integer funn(Integer a, Integer b)
Integer c
Set c = 2
b = b mod c
a = a mod c
return a+b
End function funn()

2 years ago | [YT] | 0

Basic Coding

Which of these are selection statements in java?

2 years ago | [YT] | 0

Basic Coding

Which exception is thrown when java is out of memory?

2 years ago | [YT] | 0

Basic Coding

What is the extension of compiled java classes?

2 years ago | [YT] | 0

Basic Coding

Which of the following is a type of polymorphism in java programming

2 years ago | [YT] | 0

Basic Coding

Which of the following is not an OOPS concept in java?

2 years ago | [YT] | 0