JavaScript Basic Quiz

  1. What is JavaScript?
    A. A programming language used for creating dynamic web applications.
    B. A markup language used for creating web pages.
    C. A scripting language used for creating animations on web pages.
    D. A database language used for storing web page data.

  2. Which of the following is not a data type in JavaScript?
    A. String
    B. Boolean
    C. Integer
    D. Number

  3. What is the keyword used to declare a variable?
    A. va
    B. var
    C. variable
    D. None of them

  4. How will you declare a variable in JavaScript that stores the string ‘Edyoda’?
    A. var “Edyoda”;
    B. “Edyoda”;
    C. var name = “Edyoda”;
    D. var name = Edyoda;

  5. How will you change the contents of the var name = ‘Edyoda’ to ‘Edyoda Community’ ?
    A. name =‘Edyoda Community’
    B. va name =‘Edyoda Community’
    C. var Edyoda =‘Edyoda Community’
    D. All of these

1 Like
  1. c
    b. b
  2. c
  3. c
  4. d

Q1 option C
Q2 option C
Q3 option B
Q4 option C
Q5 option A

  1. A programming language used for creating dynamic web applications.
  2. Number
  3. var
  4. var name = “Edyoda”
  5. name =‘Edyoda Community’
  1. A programming language used for creating dynamic web applications.
  2. D Number
  3. D None of them
  4. D var name = Edyoda;
  5. C var Edyoda =‘Edyoda Community’
  1. A. A programming language used for creating dynamic web applications.
  2. D. Number
  3. B. var
  4. C. var name = “Edyoda”;
  5. A. name =‘Edyoda Community’
  1. A
  2. c
  3. b
  4. c
  5. a

question-1: option A
question-2: option C
question-3: option B
question-4: option C
question-5: option C

1.c javasrcipt is scripting…
2.c integer
3.b
4.d
5.c

1- a, c, d
2- c
3- c
4- d
5- a

Q1 option: A
Q2 option:C
Q3 option B
Q4 option:C
Q5 optionC

(1).a
(2).b
(3).b
(4).c
(5).c

Q1.a
Q2.c
Q3.b
Q4.c
Q5.a

  1. A programming language used for creating dynamic web applications.
  2. Number
  3. var
  4. var name = “Edyoda”;
  5. name=‘Edyoda Community’