Preview

Java Iq Test Program

Good Essays
Open Document
Open Document
2251 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Iq Test Program
import java.io.*; import java.util.*; public class IQTest
{
int ch;
String name; int score=0;
Scanner s=new Scanner(System.in); public void Display()throws IOException
{
System.out.println("Welcome To IQ Test");
System.out.println("Plese Enter Your Name:->"); name=s.next(); System.out.println("Rules Of IQ Test Are-->\n");
System.out.println("1:You Will Be Asked 30 Questions");
System.out.println("2:Each Question Carries 3 Marks");
System.out.println("3:You Will Be Given Some Options");
System.out.println("4:Wrong Answer Will Deduct Your 3 Points\n");
System.out.println("Ok Ready Then Let's Start IQ Test\n");
}
public void Q()throws IOException
{
System.out.println("\nWhich Animal Cannot Swim?");
System.out.println("1:Turtle 2:Parrot");
System.out.println("3:Mouse 4:Fish");
System.out.println("Enter The Answer :-"); ch=s.nextInt(); if(ch==2)
{
System.out.println("Right Answer!! "+name+"\n"); score+=3; } else {
System.out.println("Wrong Answer!!!"+name+"\n"); score-=3; }
System.out.println("\nIs Black Box Actually Black?");
System.out.println("1:Yes 2:No");
System.out.println("Enter The Answer->"); ch=s.nextInt(); if(ch==2)
{
System.out.println("Right Answer!! "+name+"\n"); score+=3; } else {
System.out.println("Wrong Answer!!! "+name+"\n"); score-=3; }
System.out.println("\nIn Which Country Were The Olympics Games Created ?");
System.out.println("1:India 2:Russia");
System.out.println("3:Greenland 4:Greece");
System.out.println("Enter The Answer->"); ch=s.nextInt(); if(ch==4)
{
System.out.println("Right Answer!! "+name+"\n"); score+=3; } else {
System.out.println("Wrong Answer!!! "+name+"\n"); score-=3; }
System.out.println("\nThere Are Seven Seniors On The Road\nEach One Having The Seven Crutches.\nHow Many Crutches Are At All?");
System.out.println("1:7 2:14");
System.out.println("3:49 4:40");
System.out.println("Enter The Answer->");
ch=s.nextInt();

You May Also Find These Documents Helpful

  • Satisfactory Essays

    QAT task 1

    • 256 Words
    • 2 Pages

    Average material cost per unit = (33*0.04) + (35*0.05) + (38*0.12) + (39*0.79) = $38.44…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    EXAM 5 AIS

    • 1909 Words
    • 18 Pages

    Which of the following is conducted as a follow up to a system's recent implementation?…

    • 1909 Words
    • 18 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    9.Write a program to count the number of characters in an input line. Page: 105…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Practice Quiz

    • 257 Words
    • 2 Pages

    4) Graphically show the effect of an increase in the cost of the tomato sauce on the equilibrium price and output in the market for pizza?…

    • 257 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Practice Quiz

    • 5122 Words
    • 42 Pages

    wong (eyw89) – Quiz 2 Practice – sudarshan – (57415) 1 This print-out should have 59 questions. Multiple-choice questions may continue on the next column or page – find all choices before answering. face of the table? Assume the boxes each have masses of 2.0 kg, the coefficient of static friction is µs between table and box, and the acceleration due to gravity is 10 m/s2 . 001 10.0 points…

    • 5122 Words
    • 42 Pages
    Satisfactory Essays
  • Satisfactory Essays

    After taking the web-based intelligence test and reviewed the answers, I am somewhat considered. I do not feel this test result was all that accurate. With only thirty questions asked, which ranged from math to general knowledge, I feel that it might not have gathered enough information to make it accurate. Not to mention, the test was timed and not divided into sections. There were a couple of math problems that I had to stop and figure out and I was unable to answer the last four questions. I think that lowered my score. So I no, I do not feel this IQ test was fully accurate.…

    • 289 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    2. Class objects normally have _____ that perform useful operations on their data, but primitive variables do not.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    Java exam 1 practice test

    • 6434 Words
    • 53 Pages

    A set of instructions that enable the computer to solve a problem or perform a task…

    • 6434 Words
    • 53 Pages
    Powerful Essays
  • Satisfactory Essays

    test questions

    • 404 Words
    • 2 Pages

    6. What is a hot spot (geologically speaking), what do they form in ocean basins, and what do they indicate…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Exam on Algorithms

    • 1238 Words
    • 5 Pages

    If you replaced the line LET Y = X/3 by the line LET Y = X/5, how would this change the outcome of the above?…

    • 1238 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    Running head: INTELLIGENCE TESTING ARTICLE ANALYSIS 1 INTELLIGENCE TESTING ARTICLE ANALYSIS � PAGE * MERGEFORMAT �5�…

    • 1094 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Common Sense Test

    • 388 Words
    • 2 Pages

    10. A man builds a house rectangular in shape. All sides have southern exposure. A big bear walks by. What color is the bear? Why?…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IQA concepts

    • 525 Words
    • 2 Pages

    The functions of internal quality assurance in learning and development...key concepts and principles of the internal quality assurance of assessment.…

    • 525 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Section I 1. Note that the price of Darjeeling tea remains constant after the 100th day (n=100). If the prices of the two varieties of tea become equal before n = 100, then 100 + 0.1n = 89 + 0.15n ∴ n = 220, which is not possible. (Since n has been assumed to be less than 100) ∴ The prices of the two varieties will be equal after n = 100, i.e., when the price of Darjeeling tea = 100 + 0.1 × 100 = 110 ∴ 89 + 0.15n = 110 ∴ n = 140 2007 is not a leap year. Number of days till 30th April = 31 + 28 + 31 + 30 = 120 The prices of the two varieties will be equal on 20th May. Hence, option 3. 2. Let f(x) = px2 + qx + k, where p, q and k are integers, p, 0 ∴ f(0) = k = 1 ∴ f(x) = px2 + qx + 1 f(x) = px2 + qx + k f’(x) = 2px + q When f’(x) = 0, x = −q/2p = 1 f(x) attains maximum at x = 1 ∴ q = −2p f(1) = p + q + 1 = 3 ∴1–p=3 ∴ p = −2 ∴q=4 ∴ f(x) = −2x2 + 4x + 1 ∴ f(10) = −200 + 40 + 1 = −159 Hence, option 2.…

    • 6903 Words
    • 28 Pages
    Good Essays
  • Good Essays

    Instructions: This document contains the tutorials for Inventory programs 1-3. These programs will be separated by pages between each program in addition to being color coded.…

    • 1555 Words
    • 7 Pages
    Good Essays