IdiotsDiary

IdiotsDiary

Share

It is a platform of learning. We have something for everyone. You can learn from anything to everything here. Keep supporting!! Like and share!!

JS Series#8: Arrays in JS 12/02/2022

Important concept of and in .
Read and follow in medium for articles on javascript.

JS Series#8: Arrays in JS Collections of Data

Top 5 String Methods in JS 09/02/2022


Do you day to day task quickly with some useful built-in methods in JS.

Top 5 String Methods in JS Quickly perform you day to day jobs

Boolean in JS 07/02/2022

Avoid most of your mistakes while you code with
Small but must read article in

Boolean in JS Everything about Boolean values in JS

IdiotsDiary | Learn - Explore - Practise Programming 04/07/2020

What is the output of this question?

class Test2 {
public

static void main(String[] args)

{

int arr[][] = { { 11, 22 }, { 33, 44, 55 } };

for (int i = 0; i < 2; i++) {

for (int j = 0; j < arr.length; j++)

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

System.out.println();

}

}
}

Option
A) 11 22
33 44 55
😎 11 22
33 44
C) Error
D) Exception



For more questions and tutorials please visit:-

IdiotsDiary | Learn - Explore - Practise Programming Learn java, c programming, html-5 and programming languages with example and exercise questions and practice sets that helps to achieve your goals.

IdiotsDiary | Learn - Explore - Practise Programming 04/07/2020

Question 1. What is the output of this question

class Test1 {
public

static void main(String[] args)

{

int arr[] = { 11, 22, 33 };

System.out.print(arr[-2]);

}
}
Option
A) 11 33
😎 Error
C) exception
D) 11 -33



For more questions and tutorials please visit at:-

IdiotsDiary | Learn - Explore - Practise Programming Learn java, c programming, html-5 and programming languages with example and exercise questions and practice sets that helps to achieve your goals.

03/07/2020

What does the expression float a = 35 / 0 return?

A) 0
😎 Not a Number
C) Infinity
D) java.lang.ArithmeticException: / by zero



For more questions and tutorials please visit:- www.idiotsdiary.com

03/07/2020

var a = 5;
var b = "5";

alert(a === b);

What output will be prompt in the Popup?

For more questions and tutorials please visit:- www.idiotsdiary.com




03/07/2020

What will be the output of the following code?

public class Test
{
int num = 10;
public void test(int num) { this.num = num * 5; }
public void print() { System.out.println(num); }

public static void main(String[] args)
{
Test obj = new Test();
obj.test(50);
obj.print();
}
}

A) 10
😎 50
C) 250
D) 2500

Want your school to be the top-listed School/college in Jaipur?

Click here to claim your Sponsored Listing.

Location

Category

Telephone

Address


64/347 Heera Path, Mansarovar
Jaipur
302020