home.social

#rustquiz — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rustquiz, aggregated by home.social.

  1. #RustQuiz: what will be the output?

    A. Panics with "error"
    B. Prints "32"
    C. Prints "1"
    D. Compilation error

    #rustlang

  2. #RustQuiz: What is the output?

    A. Compilation error
    B. Prints 1
    C. Panics at runtime
    D. Prints 0

    vote below
    #rustlang

  3. 🦀 Simple #RustQuiz

    A. X gives compilation error and Y prints true
    B. X prints false and Y prints true
    C. X prints true and Y gives compilation error
    D. Both gives compilation error

    Vote👇

    #rustlang #rust

  4. #RustQuiz: what will be the output?

    A. false
    B. true
    C. Compilation error
    D. unsafe block is missing

    #rustlang #rust

  5. #RustQuiz: what is the output?

    A. prints
    fn1
    fn2
    1

    B. prints
    fn1
    1

    C. Compilation error

    D. Runtime panic

    vote below 👇

    #rustlang #rust

  6. #RustQuiz what is the output?

    A. It will print
    🦀
    🦀

    B. Compilation error

    C. It will print
    🦀
    Hello Rust!

    D. It will print
    Hello Rust!
    Hello Rust!

    Credits: @FineFindus

    If you have seen @FineFindus post, you might already know the answer

    Vote below 👇

    #rustlang

  7. #RustQuiz

    A. X gives compilation error & Y prints "Kernel" then "Dropped"

    B. X prints "Kernel" & Y gives compilation error

    C. X prints "Kernel" & Y prints "Kernel" then "Dropped"

    D. Both X & Y gives compilation error

    #rustlang #rust

  8. #RustQuiz : What is the output?

    A. Compilation error in X & Y

    B. Runtime error in X & Y

    C. X prints "boo" and "kernel", Y Prints "Kernel"

    D. X gives compilation error, Y prints "Kernel"

    vote below

    #rustlang #rust

  9. #RustQuiz : What will the output?

    A.
    Astra
    Kernel

    B.
    Kernel
    Astra

    C.
    Compilation Error

    D.
    Kernel panic!

    ----

    Vote below

    #rustlang #rust

  10. 🦀 Simple #RustQuiz

    What will be the output?

    A. Prints "Astra"
    B. Assertion fails and panic
    C. Compilation error

    Vote below
    #rustlang #rust

  11. #RustQuiz: what will be the output?

    A. Hello
    B. HelloWorld
    C. World
    D. Nothing gets printed

    Vote below 👇

    #rustlang

  12. #RustQuiz: What will be the output?

    A. 1 2

    B. Compilation error

    C.
    1 2
    1 2

    D.
    1 2
    1 2
    1 2

    (This is very simple i am not sure mastodon might enjoy the simple ones)

    #rustlang #rust #programming

  13. #RustQuiz What will the Output?

    A. Compilation error

    B. Runtime panic

    C.
    4919
    AstraKernel

    D.
    0x1337
    AstraKernel

    You can vote below
    #rustlang #rust

  14. #RustQuiz What will be the output?

    A. Compilation error
    B. Runtime panic
    C. false
    D. true

    vote below

    #rustlang #rust

  15. #RustQuiz

    What will be the output?

    A. Compilation error
    B. 20 20
    C. 30 30
    D. 30 ( )

    Vote here

    #rustlang #rust

  16. 🦀 #RustQuiz

    What is the output?
    A. X prints "Kernel panic!" but Y gives Compilation error
    B. Both gives Compilation Error
    C. Y prints "Kernel panic!" but X gives Compilation Error
    D. Both compiles

    Credits to
    @ThePrimeagen
    and
    @wiseaidev
    for this quiz

    Poll 👇

    #rustlang #rust

  17. 🦀 #RustQuiz

    What is the output?

    A. X compiles but Y gives Compilation error
    B. Both gives Compilation Error
    C. Y compiles but X gives Compilaton Error
    D. Both compiles

    You can also vote your answer 👇

    #rust #rustlang

  18. 🦀 #RustQuiz

    What is the output?

    A.
    Astra
    Kernel
    Dropped
    Dropped

    B.
    Astra
    Dropped
    Kernel
    Dropped

    C.
    Compilation error:
    value used here after move

    D.
    Astra
    Astra
    Dropped
    Dropped

    #rustlang #rust

  19. #RustQuiz

    Two sets of code snippets. What will be the output?

    Vote below 👇
    #rustlang #rust

  20. #RustQuiz

    Simple Rust quiz - what's the output?

    You can vote your answer 👇

    #rustlang #rust

  21. 🦀#RustQuiz

    what will be the output?

    1: Both A & B will give error
    2: A will give error, B will run
    3. B will give error, A will run
    4. Both will run

    #rustlang #rust #programming

  22. 🦀 what is the output

    A.
    0
    1
    2
    3

    B. Compilation error

    C.
    2
    1
    3

    D.
    2
    3
    1

    E. None of the above

    Credits to @orhun

    #rustlang #rustquiz #rust

  23. 🦀 #RustQuiz
    (similar to previous)

    What is the result in "release" mode?

    A. Both X and Y give compilation error

    B. X gives compilation error and Y gives runtime error

    C. X gives compilation error and Y prints 0

    D. Y gives compilation error and X prints 0

    Previous related quiz:
    infosec.exchange/@AstraKernel/

    #rustlang #rust

  24. 🦀 #RustQuiz

    What is the result?

    A. X & Y give compilation error

    B. X & Y give runtime error

    C. X give runtime error and Y give compilation error

    D. X gives compilation error and Y gives runtime error

    E.Both will work since index starts at 1 🤷

    #rustlang #rust

    - i know the option E is dumb 😂

  25. 🦀 #RustQuiz

    What will be the output?

    A. X will give compilation error and Y will run

    B. Both X and Y will run

    C. Both X will run and Y will compilation error

    D. X will give a runtime error and Y will run

    #rustlang #rust

  26. #RustQuiz

    What's the output?

    A. It will print "hello"
    B. It will print "rusty"
    C. It will give a compilation error
    D. It will give a runtime error

    #rustlang #rust #borrowchecker

  27. 🦀 #RustQuiz

    What is the output of this?

    A. Error
    B. RustJsPython
    C. (Rust, Js, Python)
    D. Rust

    (Not hard/tricky or unique as #RustChallenge, just simple quizzes)

    #rustlang #rustquiz #rust #rusttips #LearnRust