Java Arrays Quiz - Class 10 ICSE

  1. What is the correct way to declare an array of integers in Java?

    array arr[];
    int arr[];
    int arr;
    int arr{};
  2. Which index does a Java array start from?

    1
    0
    -1
    Any random number
  3. What will happen if you try to access an array element beyond its size?

    ArrayIndexOutOfBoundsException
    NullPointerException
    Compilation Error
    Program runs normally
  4. Which of the following is the correct way to initialize an array at the time of declaration?

    int arr[5] = {1, 2, 3, 4, 5};
    int arr[] = {1, 2, 3, 4, 5};
    int arr{} = {1, 2, 3, 4, 5};
    int arr = {1, 2, 3, 4, 5};
  5. What is the length of the array `int[] arr = new int[10];`?

    9
    10
    Depends on elements
    0

No comments:

Post a Comment

Featured Highlighted Categories

You'll discover all of the most up-to-date bring innovative here.

Java Arrays Quiz - Class 10 ICSE What is the correct way to declare an array of integers in Java? array arr[]; ...

Contact form

Name

Email *

Message *

Marketing Development

Marketing Development
Free Online Marketing Curriculum Development that you can directly adapt and execute on your website.

Blogging guide Book

Blogging guide Book
Best Digital Marketing Course/SEO Optimization free to use and implement on your website easily.

Easy Steps To Learn Blogging and Digital Marketing.

Easy Steps To Learn Blogging and Digital Marketing.
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aliquam necessitatibus libero id, fuga, quis eligendi, ullam optio dolores voluptatibus amet vitae modi illo temporibus quod?

Products

Experiments

Search This Blog

Google Lab

Game

News Updates

Education

Design by - Blogger Templates | Distributed by Free Blogger Templates

Made with Love by

Made with Love by
Citron Template is Designed Theme for Giving Enhanced look Various Features are available Which is designed in User friendly to handle by Piki Developers. Simple and elegant themes for making it more comfortable

Off-page SEO

Off-page SEO
The practice of supporting the growth of web pages in search engines to something in promote increased

Affiliate Product

Affiliate Product
Even if you don't have your own products to sell, there are 7 steps to follow to started selling online.

Link Building

Link Building
Inexpensive Link Building Curriculum Creation that you can readily modify and install on your website.

On-page SEO

On-page SEO
The technique of contribute towards the development web pages in search engines in order to rank

Comments

4/comments/show