Sec-B Quiz-3

Quiz
•
Computers
•
University
•
Hard
Mandeep Singh
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Return the Sum of Two Numbers
Create a function with name addition that takes two numbers as arguments and returns their sum.
Examples
addition(3, 2) ➞ 5 addition(-3, -6) ➞ -9 addition(7, 3) ➞ 10
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Convert Age to Days
Create a function with name calcAge by passing parameter that takes the age in years and returns the age in days.
Examples
calcAge(65) ➞ 23725 calcAge(0) ➞ 0 calcAge(20) ➞ 7300
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Convert Minutes into Seconds
Write a function that takes an integer minutes and converts it to seconds.
Examples
convert(5) ➞ 300 convert(3) ➞ 180 convert(2) ➞ 120
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Return the Remainder from Two Numbers
There is a single operator in JavaScript, capable of providing the remainder of a division operation. Two numbers are passed as parameters. The first parameter divided by the second parameter will have a remainder, possibly zero. Return that value.
Examples
remainder(1, 3) ➞ 1 remainder(3, 4) ➞ 3 remainder(-9, 45) ➞ -9 remainder(5, 5) ➞ 0
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Convert Hours into Seconds
Write a function that converts hours into seconds.
Examples
howManySeconds(2) ➞ 7200 howManySeconds(10) ➞ 36000 howManySeconds(24) ➞ 86400
use signature :-
function howManySeconds(hours) {}
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Return Something to Me!
Write a function that returns the string "something" joined with a space " " and the given argument a.
Examples
giveMeSomething("is better than nothing") ➞ "something is better than nothing" giveMeSomething("Bob Jane") ➞ "something Bob Jane" giveMeSomething("something") ➞ "something something"
Notes
Assume an input is given.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Maximum Edge of a Triangle
Create a function that finds the maximum range of a triangle's third edge, where the side lengths are all integers.
Examples
nextEdge(8, 10) ➞ 17 nextEdge(5, 7) ➞ 11 nextEdge(9, 2) ➞ 10
Notes
(side1 + side2) - 1 = maximum range of third edge.
The side lengths of the triangle are positive integers.
Don't forget to return the result.
Similar Resources on Wayground
10 questions
Functions in Python

Quiz
•
University
10 questions
Excel Formulas and Functions Quiz

Quiz
•
University
10 questions
FGCT4023 Topic 6 - Interactivity

Quiz
•
University
10 questions
Let's Play Together

Quiz
•
University - Professi...
12 questions
BIOMETRICS UNIT-V

Quiz
•
University
9 questions
PC-B1 (Basic Python) - Lesson 2

Quiz
•
6th Grade - University
10 questions
319K/H SI Week 5 - ECE 302 Review

Quiz
•
University
10 questions
Rapid Round 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University