Programming Languages — 630 questions
Play ▸- #1 · Which programming language is this? print('Hello, World!')
- #2 · Which programming language is this? def greet(name): return f"Hello, {name}!"
- #3 · Which programming language is this? if __name__ == "__main__": main()
- #4 · Which programming language is this? squares = [x ** 2 for x in range(10)]
- #5 · Which programming language is this? with open('data.txt') as f: data = f.read()
- #6 · Which programming language is this? import numpy as np arr = np.array([1, 2, 3])
- #7 · Which programming language is this? @app.route('/') def index(): return 'Home'
- #8 · Which programming language is this? async def fetch(url): async with session.get(url)
- #9 · Which programming language is this? result = {k: v for k, v in pairs if v is not None}
- #10 · Which programming language is this? nums = list(map(lambda x: x * 2, filter(lambda y:
- #11 · Which programming language is this? console.log('Hello, World!');
- #12 · Which programming language is this? const double = arr.map(x => x * 2);
- #13 · Which programming language is this? document.querySelector('#app').innerHTML = 'Hi';
- #14 · Which programming language is this? setTimeout(() => console.log('done'), 1000);
- #15 · Which programming language is this? const { name, age } = user;
- #16 · Which programming language is this? async function load() { const res = await fetch(ur
- #17 · Which programming language is this? let p = new Promise((resolve, reject) => resolve(4
- #18 · Which programming language is this? export default function App() { return null; }
- #19 · Which programming language is this? const total = items.filter(i => i.active).reduce((
- #20 · Which programming language is this? const merged = { ...defaults, ...options, id: 1 };
- #21 · Which programming language is this? #include <iostream> int main() { std::cout << "Hel
- #22 · Which programming language is this? std::cout << "Sum: " << a + b << std::endl;
- #23 · Which programming language is this? std::vector<int> v = {1, 2, 3};
- #24 · Which programming language is this? template <typename T> T maxOf(T a, T b) { return a
- #25 · Which programming language is this? int* ptr = new int(5); delete ptr;
- #26 · Which programming language is this? class Animal { public: virtual void speak() = 0; }
- #27 · Which programming language is this? std::sort(v.begin(), v.end());
- #28 · Which programming language is this? auto ptr = std::make_unique<Foo>(42);
- #29 · Which programming language is this? for (const auto& item : container) { std::cout <<
- #30 · Which programming language is this? std::map<std::string, int> counts; counts["a"]++;
- #31 · Which programming language is this? public static void main(String[] args) { }
- #32 · Which programming language is this? System.out.println("Hello, World!");
- #33 · Which programming language is this? public class Main { }
- #34 · Which programming language is this? ArrayList<String> list = new ArrayList<>();
- #35 · Which programming language is this? @Override public String toString() { return name;
- #36 · Which programming language is this? for (String item : items) { System.out.println(ite
- #37 · Which programming language is this? private final int count = 0;
- #38 · Which programming language is this? list.stream().filter(x -> x > 0).collect(Collector
- #39 · Which programming language is this? public void read() throws IOException { }
- #40 · Which programming language is this? Map<String, Integer> map = new HashMap<>(); map.pu
- #41 · Which programming language is this? fn main() { println!("Hello, World!"); }
- #42 · Which programming language is this? let mut count = 0;
- #43 · Which programming language is this? fn add(a: i32, b: i32) -> i32 { a + b }
- #44 · Which programming language is this? let v: Vec<i32> = vec![1, 2, 3];
- #45 · Which programming language is this? match value { Some(n) => n, None => 0, }
- #46 · Which programming language is this? struct Point { x: f64, y: f64, }
- #47 · Which programming language is this? for i in 0..10 { println!("{}", i); }
- #48 · Which programming language is this? let content = std::fs::read_to_string(path)?;
- #49 · Which programming language is this? impl Display for Point { fn fmt(&self, f: &mut For
- #50 · Which programming language is this? let name = String::from("Rust"); let slice: &str =
- #51 · Which programming language is this? package main import "fmt" func main() { fmt.Printl
- #52 · Which programming language is this? func add(a int, b int) int { return a + b }
- #53 · Which programming language is this? if err != nil { return err }
- #54 · Which programming language is this? count := 0 for i := 0; i < 10; i++ { }
- #55 · Which programming language is this? defer file.Close()
- #56 · Which programming language is this? type Point struct { X, Y int }
- #57 · Which programming language is this? m := map[string]int{"a": 1}
- #58 · Which programming language is this? ch := make(chan int) go worker(ch)
- #59 · Which programming language is this? func (p *Point) Move(dx int) { p.X += dx }
- #60 · Which programming language is this? fmt.Printf("%v\n", result)
- #61 · Which programming language is this? for i in range(5): print(i)
- #62 · Which programming language is this? name = input('Enter your name: ')
- #63 · Which programming language is this? numbers = [1, 2, 3] numbers.append(4)
- #64 · Which programming language is this? try: x = int(value) except ValueError: x = 0
- #65 · Which programming language is this? class Dog: def __init__(self, name): self.name = n
- #66 · Which programming language is this? print(', '.join(items))
- #67 · Which programming language is this? from collections import Counter c = Counter(words)
- #68 · Which programming language is this? def gen(): yield from range(10)
- #69 · Which programming language is this? items = sorted(data, key=lambda x: x[1], reverse=T
- #70 · Which programming language is this? df = pd.DataFrame(data) mean = df['col'].mean()
- #71 · Which programming language is this? let sum = 0; for (let i = 0; i < 5; i++) sum += i;
- #72 · Which programming language is this? const name = prompt('What is your name?');
- #73 · Which programming language is this? arr.forEach(item => console.log(item));
- #74 · Which programming language is this? button.addEventListener('click', () => {});
- #75 · Which programming language is this? const data = JSON.stringify({ id: 1, ok: true });
- #76 · Which programming language is this? class Cat extends Animal { constructor() { super()
- #77 · Which programming language is this? const unique = [...new Set(arr)];
- #78 · Which programming language is this? app.get('/api', (req, res) => res.json(data));
- #79 · Which programming language is this? const [count, setCount] = useState(0);
- #80 · Which programming language is this? const results = await Promise.all(urls.map(u => fe
- #81 · Which programming language is this? #include <vector> using namespace std;
- #82 · Which programming language is this? int x; std::cin >> x;
- #83 · Which programming language is this? std::string name = "C++"; std::cout << name.length
- #84 · Which programming language is this? for (auto it = v.begin(); it != v.end(); ++it) {}
- #85 · Which programming language is this? struct Node { int data; Node* next; };
- #86 · Which programming language is this? std::cout << "Enter: "; std::cin >> n;
- #87 · Which programming language is this? auto p = std::make_shared<int>(10);
- #88 · Which programming language is this? std::cout << std::fixed << std::setprecision(2) <<
- #89 · Which programming language is this? std::vector<std::pair<int, int>> edges;
- #90 · Which programming language is this? template <class T> class Stack { std::vector<T> da
- #91 · Which programming language is this? int[] arr = new int[10];
- #92 · Which programming language is this? String msg = "Hi"; System.out.println(msg.length()
- #93 · Which programming language is this? Scanner sc = new Scanner(System.in);
- #94 · Which programming language is this? public abstract class Shape { abstract double area
- #95 · Which programming language is this? try { } catch (Exception e) { e.printStackTrace();
- #96 · Which programming language is this? Map<String, List<Integer>> m = new HashMap<>();
- #97 · Which programming language is this? list.forEach(System.out::println);
- #98 · Which programming language is this? Optional<String> name = Optional.ofNullable(value)
- #99 · Which programming language is this? @SpringBootApplication public class App { }
- #100 · Which programming language is this? StringBuilder sb = new StringBuilder(); sb.append(
- #101 · Which programming language is this? let x: i32 = 10; let y = x + 5;
- #102 · Which programming language is this? println!("{} + {} = {}", a, b, a + b);
- #103 · Which programming language is this? let sum: i32 = v.iter().sum();
- #104 · Which programming language is this? enum Direction { North, South, }
- #105 · Which programming language is this? let s = String::new(); let n: usize = s.len();
- #106 · Which programming language is this? if let Some(x) = option { println!("{}", x); }
- #107 · Which programming language is this? fn largest<T: PartialOrd>(list: &[T]) -> &T {}
- #108 · Which programming language is this? let inc = |x: i32| -> i32 { x + 1 };
- #109 · Which programming language is this? use std::collections::HashMap; let mut map = HashM
- #110 · Which programming language is this? let result: Result<i32, String> = Ok(5);
- #111 · Which programming language is this? var name string = "Go"
- #112 · Which programming language is this? nums := []int{1, 2, 3}
- #113 · Which programming language is this? s := fmt.Sprintf("%d items", n)
- #114 · Which programming language is this? for index, value := range items { }
- #115 · Which programming language is this? type Animal interface { Sound() string }
- #116 · Which programming language is this? wg.Add(1) go func() { defer wg.Done() }()
- #117 · Which programming language is this? result, err := strconv.Atoi(str)
- #118 · Which programming language is this? select { case msg := <-ch: }
- #119 · Which programming language is this? slice = append(slice, item)
- #120 · Which programming language is this? func (s *Server) Handle(w http.ResponseWriter, r *
- #121 · Which programming language is this? x = 5 if x > 3: print("big")
- #122 · Which programming language is this? fruits = ['apple', 'banana'] for fruit in fruits:
- #123 · Which programming language is this? def factorial(n): return 1 if n == 0 else n * fact
- #124 · Which programming language is this? text = f"{name} is {age} years old"
- #125 · Which programming language is this? import os files = os.listdir('.')
- #126 · Which programming language is this? squares = {n: n * n for n in range(5)}
- #127 · Which programming language is this? @dataclass class Point: x: int y: int
- #128 · Which programming language is this? with ThreadPoolExecutor() as ex: results = ex.map(
- #129 · Which programming language is this? class Meta(type): def __new__(mcs, name, bases, ns
- #130 · Which programming language is this? assert x == 5, "x must be 5"
- #131 · Which programming language is this? var x = 10; var y = "hello";
- #132 · Which programming language is this? const obj = { name: "JS", year: 1995 };
- #133 · Which programming language is this? const evens = arr.filter(n => n % 2 === 0);
- #134 · Which programming language is this? let str = Hello ${name}, welcome;
- #135 · Which programming language is this? Object.keys(obj).forEach(key => console.log(key));
- #136 · Which programming language is this? const fn = function () { return this.value; };
- #137 · Which programming language is this? module.exports = { add, subtract };
- #138 · Which programming language is this? const once = (fn) => { let done = false; return (.
- #139 · Which programming language is this? try { JSON.parse(data); } catch (e) { console.erro
- #140 · Which programming language is this? const name = obj?.user?.name ?? "default";
- #141 · Which programming language is this? #include <string> std::string s = "hello";
- #142 · Which programming language is this? int arr[5] = {1, 2, 3, 4, 5};
- #143 · Which programming language is this? for (int i : {1, 2, 3}) std::cout << i;
- #144 · Which programming language is this? std::cout << (x > 0 ? "pos" : "neg");
- #145 · Which programming language is this? enum class Color { Red, Green, Blue };
- #146 · Which programming language is this? std::unordered_map<int, std::string> m;
- #147 · Which programming language is this? auto sq = [](int x) { return x * x; };
- #148 · Which programming language is this? std::cout << std::boolalpha << (a == b);
- #149 · Which programming language is this? constexpr int square(int x) { return x * x; }
- #150 · Which programming language is this? std::string& ref = name;
- #151 · Which programming language is this? boolean flag = true; if (flag) System.out.println(
- #152 · Which programming language is this? System.out.print("Enter a number: ");
- #153 · Which programming language is this? int sum = Arrays.stream(nums).sum();
- #154 · Which programming language is this? public interface Comparable<T> { int compareTo(T o
- #155 · Which programming language is this? enum Day { MONDAY, TUESDAY, WEDNESDAY }
- #156 · Which programming language is this? String[] parts = text.split(",");
- #157 · Which programming language is this? list.sort(Comparator.comparing(User::getName));
- #158 · Which programming language is this? CompletableFuture.supplyAsync(() -> compute());
- #159 · Which programming language is this? @FunctionalInterface interface Calc { int apply(in
- #160 · Which programming language is this? final double PI = 3.14159;
- #161 · Which programming language is this? let name = "Rust"; println!("Hello, {}", name);
- #162 · Which programming language is this? fn greet() { println!("Hi there"); }
- #163 · Which programming language is this? for n in &numbers { println!("{}", n); }
- #164 · Which programming language is this? let doubled: Vec<i32> = nums.iter().map(|x| x * 2)
- #165 · Which programming language is this? trait Animal { fn sound(&self) -> String; }
- #166 · Which programming language is this? map.entry(key).or_insert(0);
- #167 · Which programming language is this? impl<T> Stack<T> { fn new() -> Self { Stack { item
- #168 · Which programming language is this? let level = match value { 1..=5 => "low", _ => "hi
- #169 · Which programming language is this? let opt: Option<i32> = Some(42);
- #170 · Which programming language is this? let boxed: Box<dyn Shape> = Box::new(circle);
- #171 · Which programming language is this? fmt.Println("Hello,", name)
- #172 · Which programming language is this? var count int = 0 count++
- #173 · Which programming language is this? numbers := make([]int, 0, 10)
- #174 · Which programming language is this? for i := range items { fmt.Println(i) }
- #175 · Which programming language is this? if value, ok := m[key]; ok { use(value) }
- #176 · Which programming language is this? func divide(a, b float64) (float64, error) { retur
- #177 · Which programming language is this? defer func() { if r := recover(); r != nil { } }()
- #178 · Which programming language is this? var mu sync.Mutex mu.Lock() defer mu.Unlock()
- #179 · Which programming language is this? type Celsius float64
- #180 · Which programming language is this? ticker := time.NewTicker(time.Second)
- #181 · Which programming language is this? numbers = [1, 2, 3] total = sum(numbers)
- #182 · Which programming language is this? import json data = json.loads(raw)
- #183 · Which programming language is this? print(f"{value:.2f}")
- #184 · Which programming language is this? from typing import Optional, List
- #185 · Which programming language is this? match command: case "go": run()
- #186 · Which programming language is this? with contextlib.suppress(KeyError): del d[key]
- #187 · Which programming language is this? const add = (a, b) => a + b;
- #188 · Which programming language is this? const unique = new Set([1, 2, 2, 3]);
- #189 · Which programming language is this? nums.sort((a, b) => a - b);
- #190 · Which programming language is this? if (Array.isArray(value)) {}
- #191 · Which programming language is this? const { id, ...rest } = props;
- #192 · Which programming language is this? el.classList.toggle('active');
- #193 · Which programming language is this? #include <map> std::map<int, int> m;
- #194 · Which programming language is this? std::cout << std::setw(5) << x;
- #195 · Which programming language is this? auto it = std::find(v.begin(), v.end(), x);
- #196 · Which programming language is this? std::thread t(worker); t.join();
- #197 · Which programming language is this? std::lock_guard<std::mutex> lock(mtx);
- #198 · Which programming language is this? int sum = a + b; System.out.println(sum);
- #199 · Which programming language is this? List<String> list = List.of("a", "b");
- #200 · Which programming language is this? int n = Integer.parseInt(text);
- #201 · Which programming language is this? try (var in = open()) { }
- #202 · Which programming language is this? IntStream.range(0, 10).forEach(System.out::println
- #203 · Which programming language is this? let v = vec![0; 5];
- #204 · Which programming language is this? let n = s.parse::<i32>().unwrap();
- #205 · Which programming language is this? #[derive(Clone, Debug)] struct User;
- #206 · Which programming language is this? let mut s = String::with_capacity(16);
- #207 · Which programming language is this? let n = arr.iter().filter(|&&x| x > 0).count();
- #208 · Which programming language is this? s := []string{"a", "b"}
- #209 · Which programming language is this? t := time.Now()
- #210 · Which programming language is this? ch <- value
- #211 · Which programming language is this? b, err := json.Marshal(data)
- #212 · Which programming language is this? ctx, cancel := context.WithTimeout(context.Backgro
- #213 · Which programming language is this? for i, item in enumerate(items, start=1): print(i,
- #214 · Which programming language is this? if (n := len(data)) > 0: process(data)
- #215 · Which programming language is this? @lru_cache(maxsize=128) def fib(n): return n if n
- #216 · Which programming language is this? raise ValueError("invalid") from original
- #217 · Which programming language is this? const clone = structuredClone(obj);
- #218 · Which programming language is this? for (const [key, val] of Object.entries(map)) { co
- #219 · Which programming language is this? const cache = new WeakMap();
- #220 · Which programming language is this? int* p = nullptr;
- #221 · Which programming language is this? std::optional<int> maybe = std::nullopt;
- #222 · Which programming language is this? [[nodiscard]] int compute();
- #223 · Which programming language is this? record User(String name, int age) {}
- #224 · Which programming language is this? switch (day) { case MONDAY -> System.out.println("
- #225 · Which programming language is this? String text = Files.readString(Path.of("data.txt")
- #226 · Which programming language is this? let msg = format!("count = {}", n);
- #227 · Which programming language is this? let doubled: Vec<i32> = items.iter().map(|x| x * 2
- #228 · Which programming language is this? #[tokio::main] async fn main() {}
- #229 · Which programming language is this? var b strings.Builder b.WriteString("hello")
- #230 · Which programming language is this? if errors.Is(err, io.EOF) { return nil }
- #231 · Which programming language is this? var once sync.Once once.Do(initialize)
- #232 · Which programming language is this? from pathlib import Path text = Path("data.txt").r
- #233 · Which programming language is this? for key, value in zip(keys, values): print(key, va
- #234 · Which programming language is this? async for event in queue: await handle(event)
- #235 · Which programming language is this? queueMicrotask(() => tick());
- #236 · Which programming language is this? const moduleUrl = import.meta.url;
- #237 · Which programming language is this? const proxy = new Proxy(target, { get(obj, key) {
- #238 · Which programming language is this? std::array<int, 3> nums = {1, 2, 3};
- #239 · Which programming language is this? std::string_view name = "hello";
- #240 · Which programming language is this? template <std::integral T> T square(T x) { return
- #241 · Which programming language is this? String joined = String.join(", ", parts);
- #242 · Which programming language is this? label = "even" if n % 2 == 0 else "odd"
- #243 · Which programming language is this? print(", ".join(map(str, nums)))
- #244 · Which programming language is this? pairs = {k: v for k, v in items}
- #245 · Which programming language is this? match status: case 200 | 201: ok()
- #246 · Which programming language is this? @dataclass(frozen=True) class Point: x: int y: int
- #247 · Which programming language is this? const { x, y } = point;
- #248 · Which programming language is this? const value = arr?.[0] ?? "none";
- #249 · Which programming language is this? setTimeout(() => console.log("done"), 1000);
- #250 · Which programming language is this? for (const [k, v] of Object.entries(obj)) { consol
- #251 · Which programming language is this? function* range(n) { for (let i = 0; i < n; i++) y
- #252 · Which programming language is this? std::cout << "x = " << x << "\n";
- #253 · Which programming language is this? auto ptr = std::make_unique<int>(42);
- #254 · Which programming language is this? for (const auto& item : items) { process(item); }
- #255 · Which programming language is this? std::sort(v.begin(), v.end(), [](int a, int b) { r
- #256 · Which programming language is this? std::unordered_map<std::string, int> freq;
- #257 · Which programming language is this? var sb = new StringBuilder(); sb.append("hi");
- #258 · Which programming language is this? List<String> names = new ArrayList<>();
- #259 · Which programming language is this? int total = nums.stream().mapToInt(Integer::intVal
- #260 · Which programming language is this? public record Point(int x, int y) {}
- #261 · Which programming language is this? Map<String, Integer> counts = new HashMap<>();
- #262 · Which programming language is this? let mut total = 0; total += 1;
- #263 · Which programming language is this? let nums: Vec<i32> = (1..=5).collect();
- #264 · Which programming language is this? match result { Ok(v) => v, Err(_) => 0, }
- #265 · Which programming language is this? impl Iterator for Counter { type Item = u32; fn ne
- #266 · Which programming language is this? let name = String::from("rust"); let len = name.le
- #267 · Which programming language is this? fmt.Printf("x = %d\n", x)
- #268 · Which programming language is this? switch v := x.(type) { case int: fmt.Println(v) }
- #269 · Which programming language is this? for i, v := range items { fmt.Println(i, v) }
- #270 · Which programming language is this? func divide(a, b int) (int, error) { return a / b,
- #271 · Which programming language is this? m := map[string]int{"a": 1, "b": 2}
- #272 · Which programming language is this? from contextlib import suppress with suppress(KeyE
- #273 · Which programming language is this? results = await asyncio.gather(*tasks)
- #274 · Which programming language is this? const params = new URLSearchParams(location.search
- #275 · Which programming language is this? const results = await Promise.allSettled(promises)
- #276 · Which programming language is this? auto [lo, hi] = std::minmax(a, b);
- #277 · Which programming language is this? std::optional<int> result = find(key);
- #278 · Which programming language is this? Stream.of(1, 2, 3).forEach(System.out::println);
- #279 · Which programming language is this? Thread.ofVirtual().start(() -> task());
- #280 · Which programming language is this? let evens: i32 = (1..=100).filter(|n| n % 2 == 0).
- #281 · Which programming language is this? let shared = Arc::new(Mutex::new(0));
- #282 · Which programming language is this? data, err := os.ReadFile("config.yaml")
- #283 · Which programming language is this? start := time.Now() elapsed := time.Since(start)
- #284 · Which programming language is this? let count: number = 0;
- #285 · Which programming language is this? interface User { name: string; age: number; }
- #286 · Which programming language is this? function greet(name: string): void { console.log(n
- #287 · Which programming language is this? type ID = string | number;
- #288 · Which programming language is this? const el = input as HTMLInputElement;
- #289 · Which programming language is this? #include <stdio.h> int main(void) { printf("Hello\
- #290 · Which programming language is this? int *p = malloc(sizeof(int) * n);
- #291 · Which programming language is this? char name[50]; scanf("%s", name);
- #292 · Which programming language is this? typedef struct { int x; int y; } Point;
- #293 · Which programming language is this? Console.WriteLine("Hello");
- #294 · Which programming language is this? public class Program { static void Main(string[] a
- #295 · Which programming language is this? Console.WriteLine($"Value: {x}");
- #296 · Which programming language is this? var list = new List<int>(); foreach (var n in list
- #297 · Which programming language is this? fun main() { println("Hello") }
- #298 · Which programming language is this? val name: String = "Kotlin"
- #299 · Which programming language is this? fun add(a: Int, b: Int): Int = a + b
- #300 · Which programming language is this? data class User(val name: String, val age: Int)
- #301 · Which programming language is this? let name = "Swift" print(name)
- #302 · Which programming language is this? func greet(name: String) -> String { return "Hi \(
- #303 · Which programming language is this? guard let value = maybe else { return }
- #304 · Which programming language is this? var numbers: [Int] = [1, 2, 3]
- #305 · Which programming language is this? puts "Hello, World!"
- #306 · Which programming language is this? def greet(name) puts "Hi #{name}" end
- #307 · Which programming language is this? 3.times { |i| puts i }
- #308 · Which programming language is this? arr.each do |x| puts x end
- #309 · Which programming language is this? <?php echo "Hello"; ?>
- #310 · Which programming language is this? $name = "World"; echo "Hello $name";
- #311 · Which programming language is this? foreach ($items as $item) { echo $item; }
- #312 · Which programming language is this? function greet($name) { return "Hi $name"; }
- #313 · Which programming language is this? SELECT * FROM users WHERE age > 18;
- #314 · Which programming language is this? INSERT INTO users (name) VALUES ('Ann');
- #315 · Which programming language is this? UPDATE users SET active = 1 WHERE id = 5;
- #316 · Which programming language is this? SELECT name, COUNT(*) FROM orders GROUP BY name;
- #317 · Which programming language is this? CREATE TABLE users ( id INT PRIMARY KEY );
- #318 · Which programming language is this? #!/bin/bash echo "Hello"
- #319 · Which programming language is this? for i in 1 2 3; do echo $i done
- #320 · Which programming language is this? if [ -f file.txt ]; then echo "exists" fi
- #321 · Which programming language is this? ls -la | grep ".txt"
- #322 · Which programming language is this? package main import "fmt" func main() { fmt.Printl
- #323 · Which programming language is this? fn main() { println!("Hello"); }
- #324 · Which programming language is this? def greet(name): return f"Hi {name}"
- #325 · Which programming language is this? const doubled = [1, 2, 3].map(x => x * 2);
- #326 · Which programming language is this? System.out.println("Hello");
- #327 · Which programming language is this? #include <iostream> int main() { std::cout << "Hi"
- #328 · Which programming language is this? let mut v: Vec<i32> = Vec::new();
- #330 · Which programming language is this? squares = [x*x for x in range(10)]
- #331 · Which programming language is this? function identity<T>(value: T): T { return value;
- #332 · Which programming language is this? var result = numbers.Where(n => n > 0).ToList();
- #333 · Which programming language is this? val doubled = list.map { it * 2 }
- #334 · Which programming language is this? squares = [x**2 for x in range(10)]
- #335 · Which programming language is this? with open('file.txt') as f: data = f.read()
- #336 · Which programming language is this? nums = {k: v for k, v in items}
- #337 · Which programming language is this? document.querySelector('.btn').addEventListener('c
- #338 · Which programming language is this? const nums = arr.filter(n => n > 0).map(n => n * 2
- #339 · Which programming language is this? const p = new Promise((resolve) => resolve(42));
- #340 · Which programming language is this? function greet(name: string): void {}
- #341 · Which programming language is this? interface User { id: number; name: string; }
- #343 · Which programming language is this? cout << "Hello" << endl;
- #344 · Which programming language is this? printf("%d\n", x);
- #345 · Which programming language is this? struct Node { int data; struct Node *next; };
- #346 · Which programming language is this? Console.WriteLine($"Hello {name}");
- #347 · Which programming language is this? var list = new List<int>();
- #350 · Which programming language is this? fun main() { println("Hi") }
- #351 · Which programming language is this? val list = listOf(1, 2, 3)
- #352 · Which programming language is this? let name = "Swift" print("Hi, \(name)")
- #353 · Which programming language is this? guard let x = value else { return }
- #355 · Which programming language is this? println!("{}", x);
- #356 · Which programming language is this? func main() { fmt.Println("Hello") }
- #357 · Which programming language is this? ch := make(chan int)
- #358 · Which programming language is this? puts "Hello".upcase
- #359 · Which programming language is this? [1, 2, 3].each { |n| puts n }
- #360 · Which programming language is this? echo "Total: " . $count;
- #361 · Which programming language is this? $doubled = array_map(fn($x) => $x * 2, $nums);
- #362 · Which programming language is this? SELECT name FROM users WHERE age > 18;
- #363 · Which programming language is this? INSERT INTO logs (msg) VALUES ('ok');
- #364 · Which programming language is this? for f in *.txt; do echo "$f"; done
- #365 · Which programming language is this? if [ -f "$file" ]; then echo ok; fi
- #366 · Which programming language is this? const config = data as Record<string, unknown>;
- #367 · Which programming language is this? char *buf = malloc(64 * sizeof(char));
- #368 · Which programming language is this? struct Node { int value; struct Node *next; };
- #369 · Which programming language is this? void swap(int *a, int *b) { int t = *a; *a = *b; *
- #370 · Which programming language is this? var items = new List<string> { "a", "b" };
- #371 · Which programming language is this? public async Task<int> LoadAsync() => await FetchA
- #372 · Which programming language is this? public int Count { get; private set; }
- #373 · Which programming language is this? val names = listOf("ali", "sara")
- #374 · Which programming language is this? data class Point(val x: Int, val y: Int)
- #375 · Which programming language is this? let greeting = "Hello, \(name)!"
- #376 · Which programming language is this? def greet(name) "Hi #{name}" end
- #377 · Which programming language is this? foreach ($items as $key => $value) { echo $key; }
- #378 · Which programming language is this? SELECT name FROM users WHERE age > 18 ORDER BY nam
- #379 · Which programming language is this? SELECT u.name, o.total FROM users u INNER JOIN ord
- #380 · Which programming language is this? SELECT department, COUNT(*) FROM staff GROUP BY de
- #381 · Which programming language is this? for f in *.txt; do mv "$f" "${f%.txt}.md" done
- #382 · Which programming language is this? if [[ -z "$1" ]]; then echo "usage: $0 <file>" exi
- #383 · Which programming language is this? count=$(grep -rc "TODO" . | wc -l)
- #384 · Which programming language is this? let mut v: Vec<i32> = Vec::new(); v.push(1);
- #385 · Which programming language is this? package main func main() { fmt.Println("hi") }
- #387 · Which programming language is this? fun main() { val name = "Sam"; println(name) }
- #388 · Which programming language is this? let names = ["a", "b"] for n in names { print(n) }
- #390 · Which programming language is this? <?php echo "Hello, $name"; ?>
- #393 · Which programming language is this? var list = new List<string> { "a" }; Console.Write
- #394 · Which programming language is this? #include <iostream> std::cout << x << std::endl;
- #395 · Which programming language is this? #include <stdio.h> printf("%d\n", n);
- #396 · Which programming language is this? System.out.println("n=" + n);
- #397 · Which programming language is this? const nums = [1,2,3].map(x => x * 2);
- #398 · Which programming language is this? nums = [x*2 for x in range(5)]
- #399 · Which programming language is this? match opt { Some(x) => x, None => 0, }
- #400 · Which programming language is this? ch := make(chan int) go func() { ch <- 1 }()
- #401 · Which programming language is this? function id<T>(x: T): T { return x; }
- #402 · Which programming language is this? guard let user = maybeUser else { return }
- #403 · Which programming language is this? #!/bin/bash if [ -f "$1" ]; then echo found; fi
- #404 · Which programming language is this? with open('data.txt') as f: lines = f.readlines()
- #405 · Which programming language is this? try: value = int(raw) except ValueError: value = 0
- #406 · Which programming language is this? def counter(): total = 0 while True: total += yiel
- #407 · Which programming language is this? async def main(): await asyncio.gather(*tasks)
- #408 · Which programming language is this? document.querySelector('.btn').addEventListener('c
- #409 · Which programming language is this? const data = await fetch(url).then((r) => r.json()
- #410 · Which programming language is this? module.exports = { run, stop };
- #411 · Which programming language is this? const wait = (ms) => new Promise((resolve) => setT
- #412 · Which programming language is this? #include <iostream> using namespace std;
- #413 · Which programming language is this? template <typename T> T largest(T a, T b) { return
- #414 · Which programming language is this? for (const auto& [key, value] : counts) { std::cou
- #415 · Which programming language is this? class Base { public: virtual ~Base() = default; };
- #416 · Which programming language is this? let s = String::from("hi"); let r = &s;
- #417 · Which programming language is this? match result { Ok(v) => println!("{}", v), Err(e)
- #418 · Which programming language is this? #[derive(Debug, Clone)] struct Config { debug: boo
- #419 · Which programming language is this? impl fmt::Display for Point { fn fmt(&self, f: &mu
- #420 · Which programming language is this? resp, _ := http.Get(url) defer resp.Body.Close()
- #421 · Which programming language is this? counts := map[string]int{"a": 1}
- #422 · Which programming language is this? var wg sync.WaitGroup wg.Add(1) go work(&wg)
- #423 · Which programming language is this? type Writer interface { Write(p []byte) (n int, er
- #424 · Which programming language is this? private static final int MAX_SIZE = 100;
- #425 · Which programming language is this? @Override public String toString() { return this.n
- #426 · Which programming language is this? names.stream() .filter(s -> s.length() > 3) .colle
- #427 · Which programming language is this? try (BufferedReader br = new BufferedReader(new Fi
- #428 · Which programming language is this? Dictionary<string, int> counts = new();
- #429 · Which programming language is this? var adults = from u in users where u.Age > 18 sele
- #430 · Which programming language is this? public record Person(string Name, int Age);
- #431 · Which programming language is this? [HttpGet("api/users")] public IActionResult Get()
- #432 · Which programming language is this? attr_accessor :name, :age
- #433 · Which programming language is this? puts "empty" unless list.any?
- #434 · Which programming language is this? evens = numbers.select { |n| n.even? }
- #435 · Which programming language is this? module Greeter def self.hi "hello" end end
- #436 · Which programming language is this? shouted = %w[a b c].map(&:upcase)
- #437 · Which programming language is this? $config = ['debug' => true]; print_r($config);
- #438 · Which programming language is this? $total = array_sum($prices);
- #439 · Which programming language is this? if (isset($_POST['id'])) { $id = (int) $_POST['id'
- #440 · Which programming language is this? $stmt = $pdo->prepare('SELECT * FROM users WHERE i
- #441 · Which programming language is this? class User { public function __construct(private s
- #442 · Which programming language is this? if let value = maybeValue { print(value) }
- #443 · Which programming language is this? let doubled = numbers.map { $0 * 2 }
- #444 · Which programming language is this? enum Direction: String { case north, south }
- #445 · Which programming language is this? protocol Drawable { func draw() }
- #446 · Which programming language is this? @State private var count = 0
- #447 · Which programming language is this? const scores: number[] = [1, 2, 3];
- #448 · Which programming language is this? function log(msg: string, level: 'info' | 'warn' =
- #449 · Which programming language is this? export type Result<T> = | { ok: true; data: T } |
- #450 · Which programming language is this? function isString(x: unknown): x is string { retur
- #451 · Which programming language is this? type Optional<T> = { [K in keyof T]?: T[K] };
- #452 · Which programming language is this? DELETE FROM sessions WHERE expires_at < NOW();
- #453 · Which programming language is this? ALTER TABLE users ADD COLUMN email TEXT;
- #454 · Which programming language is this? SELECT a.id, b.total FROM accounts a LEFT JOIN bil
- #455 · Which programming language is this? SELECT dept, AVG(salary) FROM staff GROUP BY dept
- #456 · Which programming language is this? WITH recent AS ( SELECT * FROM logs ORDER BY ts DE
- #457 · Which programming language is this? export PATH="$PATH:/usr/local/bin"
- #458 · Which programming language is this? while read -r line; do echo "$line" done < input.t
- #459 · Which programming language is this? case "$1" in start) echo starting ;; *) echo "usag
- #460 · Which programming language is this? find . -name "*.log" -mtime +7 -delete
- #461 · Which programming language is this? tmp=$(mktemp) trap 'rm -f "$tmp"' EXIT
- #462 · Which programming language is this? FILE *fp = fopen("data.txt", "r");
- #463 · Which programming language is this? free(ptr); ptr = NULL;
- #464 · Which programming language is this? int arr[10]; memset(arr, 0, sizeof(arr));
- #465 · Which programming language is this? #define MAX(a, b) ((a) > (b) ? (a) : (b))
- #466 · Which programming language is this? unsigned char *bytes = (unsigned char *)&value;
- #467 · Which programming language is this? val label = when (code) { 1 -> "one" else -> "many
- #468 · Which programming language is this? val name: String? = null println(name?.length)
- #469 · Which programming language is this? items.filter { it > 2 }.forEach { println(it) }
- #470 · Which programming language is this? sealed class Result { data class Ok(val value: Int
- #471 · Which programming language is this? suspend fun load(): String = withContext(Dispatche
- #472 · Which programming language is this? 5.times { |i| puts i }
- #473 · Which programming language is this? evens = numbers.select(&:even?)
- #474 · Which programming language is this? class Account attr_accessor :balance end
- #475 · Which programming language is this? total = [1, 2, 3].inject(:+)
- #476 · Which programming language is this? def greet(name) = "hi #{name}"
- #477 · Which programming language is this? config.each_pair { |k, v| puts "#{k}=#{v}" }
- #478 · Which programming language is this? echo $_SERVER['REQUEST_METHOD'];
- #479 · Which programming language is this? foreach ($items as $key => $value) { echo "$key: $
- #480 · Which programming language is this? $doubled = array_map(fn($n) => $n * 2, $nums);
- #481 · Which programming language is this? $name = $user?->profile?->name ?? 'guest';
- #482 · Which programming language is this? namespace App\Models; use Illuminate\Database\Eloq
- #483 · Which programming language is this? $pdo->prepare('SELECT * FROM t WHERE id = :id')->e
- #484 · Which programming language is this? let names = users.compactMap { $0.nickname }
- #485 · Which programming language is this? guard !items.isEmpty else { throw LoadError.empty
- #486 · Which programming language is this? @Published private(set) var items: [Item] = []
- #487 · Which programming language is this? func fetch() async throws -> Data
- #488 · Which programming language is this? if #available(iOS 15, *) { listRowSeparator(.hidde
- #489 · Which programming language is this? extension Array where Element: Comparable { var so
- #490 · Which programming language is this? type Handlers = Record<string, (e: Event) => void>
- #491 · Which programming language is this? let port!: number;
- #492 · Which programming language is this? function assertString(x: unknown): asserts x is st
- #493 · Which programming language is this? type Result<T> = T extends Promise<infer U> ? U :
- #494 · Which programming language is this? interface User { id: number; email?: string; }
- #495 · Which programming language is this? struct Node { int val; struct Node *next; };
- #496 · Which programming language is this? int *p = malloc(n * sizeof *p); if (!p) return -1;
- #497 · Which programming language is this? char buf[64]; snprintf(buf, sizeof buf, "%d", n);
- #498 · Which programming language is this? void *memcpy(void *dst, const void *src, size_t n)
- #499 · Which programming language is this? #define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0]))
- #500 · Which programming language is this? public string Name { get; set; } = string.Empty;
- #501 · Which programming language is this? var active = users.Where(u => u.IsActive).ToList()
- #502 · Which programming language is this? public record Point(int X, int Y);
- #503 · Which programming language is this? await using var conn = new SqlConnection(cs);
- #504 · Which programming language is this? Console.WriteLine($"{name,-12}|{total,8:N2}");
- #505 · Which programming language is this? val big = numbers.filter { it > 100 }
- #506 · Which programming language is this? data class User(val id: Int, val name: String)
- #507 · Which programming language is this? fun greet(name: String = "world") = println("hi $n
- #508 · Which programming language is this? lateinit var repository: UserRepository
- #509 · Which programming language is this? val label = when (value) { is Int -> "number" else
- #510 · Which programming language is this? SELECT dept, COUNT(*) FROM employees GROUP BY dept
- #511 · Which programming language is this? UPDATE users SET active = FALSE WHERE last_seen <
- #512 · Which programming language is this? SELECT u.name, o.total FROM users u LEFT JOIN orde
- #513 · Which programming language is this? WITH recent AS ( SELECT * FROM logs WHERE ts > NOW
- #514 · Which programming language is this? SELECT name, ROW_NUMBER() OVER (PARTITION BY dept
- #515 · Which programming language is this? for f in *.log; do gzip "$f" done
- #516 · Which programming language is this? if [[ -f "$path" ]]; then echo found fi
- #517 · Which programming language is this? set -euo pipefail
- #518 · Which programming language is this? awk '{print $2}' access.log | sort | uniq -c
- #519 · Which programming language is this? while IFS= read -r line; do printf '%s ' "$line" d
- #520 · Which programming language is this? if err != nil { return fmt.Errorf("read config: %w
- #521 · Which programming language is this? results := make(chan int, 8) defer close(results)
- #522 · Which programming language is this? func (s *Server) ServeHTTP(w http.ResponseWriter,
- #523 · Which programming language is this? let names: Vec<_> = users.iter().map(|u| &u.name).
- #524 · Which programming language is this? impl fmt::Display for Point { fn fmt(&self, f: &mu
- #525 · Which programming language is this? let value = match maybe { Some(v) => v, None => re
- #526 · Which programming language is this? List<String> upper = items.stream() .map(String::t
- #527 · Which programming language is this? @Override public boolean equals(Object o) { if (th
- #528 · Which programming language is this? auto node = std::make_unique<Node>(value);
- #529 · Which programming language is this? template <typename T> constexpr T square(T x) { re
- #530 · Which programming language is this? match command: case "start": run() case _: pass
- #531 · Which programming language is this? document.querySelectorAll('.item').forEach((el) =>
- #532 · Which programming language is this? enum Status { Active = "ACTIVE", Banned = "BANNED"
- #533 · Which programming language is this? class Cache<K, V> { private store = new Map<K, V>(
- #534 · Which programming language is this? const ROUTES = ["home", "about", "contact"] as con
- #535 · Which programming language is this? const handler = (e: MouseEvent) => { const target
- #536 · Which programming language is this? #include <stdio.h> int main(void) { for (int i = 1
- #537 · Which programming language is this? int compare(const void *a, const void *b) { return
- #538 · Which programming language is this? FILE *fp = fopen("scores.txt", "r"); int score, to
- #539 · Which programming language is this? struct point { int x, y; }; struct point *p = mall
- #540 · Which programming language is this? using System; class Hello { static void Main() { s
- #541 · Which programming language is this? public interface IRepository<T> where T : class {
- #542 · Which programming language is this? string label = shape switch { Circle c => $"circle
- #543 · Which programming language is this? public static bool TryParseAge(string input, out i
- #544 · Which programming language is this? fun main() { val fruits = mutableListOf("apple", "
- #545 · Which programming language is this? class Stack<T> { private val items = ArrayList<T>(
- #546 · Which programming language is this? val user = User("ana").apply { email = "ana@exampl
- #547 · Which programming language is this? val scores = mapOf("ana" to 90, "bo" to 72) for ((
- #548 · Which programming language is this? var count = 0 for i in 1...5 { count += i } print(
- #549 · Which programming language is this? struct Temperature { var celsius: Double var fahre
- #550 · Which programming language is this? switch statusCode { case 200..<300: print("success
- #551 · Which programming language is this? func divide(_ a: Int, by b: Int) -> Int? { guard b
- #552 · Which programming language is this? name = gets.chomp if name.empty? puts "Who are you
- #553 · Which programming language is this? class Dog def initialize(name) @name = name end de
- #554 · Which programming language is this? prices = { apple: 1.2, pear: 0.8 } prices.each do
- #555 · Which programming language is this? def fetch(retries: 3) yield rescue Timeout::Error
- #556 · Which programming language is this? <?php $colors = ["red", "green", "blue"]; echo cou
- #557 · Which programming language is this? $users = array_filter($users, function ($u) { retu
- #558 · Which programming language is this? $status = match ($code) { 200, 201 => 'ok', 404 =>
- #559 · Which programming language is this? final class Money { public function __construct( p
- #560 · Which programming language is this? SELECT title, price FROM books WHERE price < 20 OR
- #561 · Which programming language is this? SELECT c.name, SUM(o.amount) AS spent FROM custome
- #562 · Which programming language is this? CREATE INDEX idx_orders_customer ON orders (custom
- #563 · Which programming language is this? SELECT name, CASE WHEN score >= 90 THEN 'A' WHEN s
- #564 · Which programming language is this? #!/bin/bash name="world" echo "Hello, $name" echo
- #565 · Which programming language is this? backup() { local src="$1" tar -czf "${src}.tar.gz"
- #566 · Which programming language is this? fruits=(apple banana cherry) for f in "${fruits[@]
- #567 · Which programming language is this? declare -A ports=([web]=80 [db]=5432) for svc in "
- #568 · Which programming language is this? let pair: [string, number] = ["age", 30]; let tags
- #569 · Which programming language is this? interface Todo { title: string; done: boolean; due
- #570 · Which programming language is this? const palette = { red: [255, 0, 0], green: "#00ff0
- #571 · Which programming language is this? const env = { dev: 3000, prod: 80 }; function port
- #572 · Which programming language is this? #include <stdio.h> enum color { RED, GREEN, BLUE }
- #573 · Which programming language is this? int add(int a, int b) { return a + b; } int sub(in
- #574 · Which programming language is this? union value { int i; float f; unsigned char bytes[
- #575 · Which programming language is this? static const char *names[] = { [2] = "two", [5] =
- #576 · Which programming language is this? string? input = Console.ReadLine(); int n = int.Pa
- #577 · Which programming language is this? var byCity = people .GroupBy(p => p.City) .Select(
- #578 · Which programming language is this? public async Task<string[]> FetchAllAsync(IEnumera
- #579 · Which programming language is this? public record Order(int Id, decimal Total); var fi
- #580 · Which programming language is this? fun main() { for (i in 10 downTo 1 step 3) { print
- #581 · Which programming language is this? fun String.isPalindrome(): Boolean = this == this.
- #582 · Which programming language is this? class Config private constructor(val url: String)
- #583 · Which programming language is this? class Report(private val loader: () -> String) { v
- #584 · Which programming language is this? let fruits = ["apple", "pear", "plum"] for (index,
- #585 · Which programming language is this? enum Shape { case circle(radius: Double) case rect
- #586 · Which programming language is this? @propertyWrapper struct Clamped { private var valu
- #587 · Which programming language is this? func bump(_ n: inout Int, by step: Int = 1) { n +=
- #588 · Which programming language is this? person = { name: "Ana", age: 30 } puts "#{person[:
- #589 · Which programming language is this? words = ["apple", "avocado", "banana"] index = wor
- #590 · Which programming language is this? class Version include Comparable attr_reader :majo
- #591 · Which programming language is this? def describe(n) return "none" if n.nil? case n whe
- #592 · Which programming language is this? <?php $name = "world"; echo strtoupper($name) . PH
- #593 · Which programming language is this? enum Suit: string { case Hearts = 'H'; case Spades
- #594 · Which programming language is this? function makeUrl(string $host, int $port = 80, boo
- #595 · Which programming language is this? $parts = explode(',', $line); [$first, $last] = $p
- #596 · Which programming language is this? SELECT DISTINCT country FROM customers WHERE count
- #597 · Which programming language is this? SELECT p.name, COALESCE(SUM(s.qty), 0) AS sold FRO
- #598 · Which programming language is this? SELECT c.name FROM customers c WHERE NOT EXISTS (
- #599 · Which programming language is this? SELECT day, revenue, revenue - LAG(revenue) OVER (
- #600 · Which programming language is this? #!/bin/bash read -p "Your name: " name echo "Hi, $
- #601 · Which programming language is this? cat <<EOF > config.ini [server] host=$HOSTNAME por
- #602 · Which programming language is this? file="/var/log/app/error.log" echo "${file##*/}" e
- #603 · Which programming language is this? if [[ $version =~ ^([0-9]+)\.([0-9]+) ]]; then maj
- #604 · Which programming language is this? const days: readonly string[] = ["mon", "tue", "we
- #605 · Which programming language is this? abstract class Shape { protected constructor(publi
- #606 · Which programming language is this? function parse(input: string): number; function pa
- #607 · Which programming language is this? type Method = "get" | "post"; type Handler = on${C
- #608 · Which programming language is this? #include <stdio.h> #include <string.h> int main(vo
- #609 · Which programming language is this? struct flags { unsigned int ready : 1; unsigned in
- #610 · Which programming language is this? #include <stdarg.h> int sum(int count, ...) { va_l
- #611 · Which programming language is this? int process(size_t n) { int rc = -1; char *buf = m
- #612 · Which programming language is this? using System; int[] nums = { 3, 1, 2 }; Array.Sort
- #613 · Which programming language is this? public class Settings { public string Theme { get;
- #614 · Which programming language is this? static IEnumerable<(int Index, string Word)> Numbe
- #615 · Which programming language is this? public static class StringExtensions { public stat
- #616 · Which programming language is this? fun main() { val nums = intArrayOf(4, 8, 15) print
- #617 · Which programming language is this? sealed interface Event data class Click(val x: Int
- #618 · Which programming language is this? infix fun Int.pow(exp: Int): Int = (1..exp).fold(1
- #619 · Which programming language is this? object Registry { private val users = mutableMapOf
- #620 · Which programming language is this? let scores = [88, 92, 75] let best = scores.max()
- #621 · Which programming language is this? struct Counter { private(set) var value = 0 mutati
- #622 · Which programming language is this? class Logger { lazy var formatter: DateFormatter =
- #623 · Which programming language is this? @MainActor func loadProfile() async throws -> (Use
- #624 · Which programming language is this? count = nil count ||= 0 count += 1 puts "Visits: #
- #625 · Which programming language is this? name = "Ana" message = <<~TEXT Dear #{name}, Your
- #626 · Which programming language is this? module Greetable def greet "Hello from #{self.clas
- #627 · Which programming language is this? class Ghost def method_missing(name, *args) name.t
- #628 · Which programming language is this? <?php $items = ["pen", "cup"]; array_push($items,
- #629 · Which programming language is this? trait Timestamps { public function touch(): void {
- #630 · Which programming language is this? list($user, $domain) = explode('@', $email); $html
- #631 · Which programming language is this? class Base { const LABEL = 'base'; public function
- #632 · Which programming language is this? SELECT name, email FROM members WHERE joined_on BE
- #633 · Which programming language is this? SELECT name, 'staff' AS kind FROM employees UNION
- #634 · Which programming language is this? BEGIN; ALTER TABLE orders ADD CONSTRAINT fk_orders
- #635 · Which programming language is this? WITH RECURSIVE chain (id, manager_id, depth) AS (
- #636 · Which programming language is this? #!/bin/bash count=$(ls | wc -l) echo "There are $c
- #637 · Which programming language is this? while getopts "vo:" opt; do case $opt in v) verbos
- #638 · Which programming language is this? mapfile -t hosts < servers.txt echo "Loaded ${#hos
- #639 · Which programming language is this? shopt -s nullglob diff <(sort old.txt) <(sort new.