Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a tuple with a string and a number, and print the values.

Easy

Problem Statement

Create a tuple with a string and a number, and print the values.

Sample Input

String: "Apple", Number: 10

Sample Output

Item: Apple, Quantity: 10

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
let item: [string, number]; // Your logic here
Log in or sign up to run or submit your code.Log inSign up
Input
String: "Apple", Number: 10
Expected Output
Item: Apple, Quantity: 10