As I mentioned in an earlier post of mine that I have my computer exam on th 26th March 2012.. So I was just wondering if anyone could provide me with some programming questions for my school level which I could practice on my own.
If anyone is posting me practice questions then I request do not forget that am just in class Tenth.. Please do not give something whish is sbove my level.
Thanks, Ordella

Dani AI

Generated

Quick, focused practice tailored for a class‑10 Java exam. Since already suggested games/generators and has done those, these alternatives cover complementary core skills. If the exact syllabus is unclear (as asked), use the short checklist below to pick appropriate problems.

Can you: write and call methods; use if/switch and for/while loops; manipulate arrays and Strings; design a simple class with fields and methods; read keyboard input (Scanner) and basic files; handle simple exceptions; write a small recursive method? If some items are weak, start with the simpler tasks below and move up.

Practice problems to try (brief intent in parentheses):

  1. Palindrome checker for phrases (string cleaning, char access).
  2. Anagram tester for two words (sorting or count arrays).
  3. Word-frequency counter from a line or small file (file I/O, arrays/Maps).
  4. Student-records manager: Student class, store many students, compute averages and find the top student (OOP + collections).
  5. Simple bank account class with deposit/withdraw and overdraft exception (exceptions + basic validation).
  6. Implement bubble or insertion sort and report number of swaps/comparisons (arrays + algorithm thinking).
  7. Small recursion task (factorial and recursive Fibonacci) and an iterative comparison (recursion vs iteration).
  8. If Swing was covered: tiny GUI with two inputs and a button that displays the sum (basic event handling only).

Pseudocode first, then code. Test with edge cases (empty input, negative numbers, single-element arrays). Common Java gotchas to watch for: use equals for strings (not ==), off‑by‑one in loops, and always close Scanner/File readers or use try-with-resources. Practice two problems a day and do one timed run to simulate the exam.

Recommended Answers

All 3 Replies

Hi-Lo Game, Prime Number Generator, Calculator ...

Thanks a lot Smeagel13 for your suggestions, but I have already done these!!!
Regards, Ordella

bit hard to do, since we don't know what level you're at, what your curriculum exists of.
just java core, have you been taught Swing (NetBeans WYSIWYG or actual coding), have you been learning frameworks, ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.