logo

Crowdly

Browser

Add to Chrome

Questions Bank (1398709 total)

I am writing to apply ... the post advertised in today's newspaper.

0%
0%
0%
0%
View this question

Match the acronym with its meaning

View this question

When you start a letter with "Dear Sir/Madam", you close it with...

100%
0%
0%
0%
View this question

What is the translation for '2nd Bachillerato' in the UK?

100%
0%
0%
0%
View this question

Match the sentences with the paragraph where they are usually used.

View this question

The addresser's name goes under his/her signature.

0%
0%
View this question

Dado el siguiente programa, ¿qué afirmación es cierta?

1#include <iostream>

 

2class test {

3public:

4 test(bool b) noexcept : b_{b} {}

5 void func() noexcept

6 {

7 if (!b_) throw "Error en test::func";

8 }

9private:

10 bool b_;

11};

 

12int main() try

13{

14 test t(false);

15 t.func();

16 std::cout << "Fin del programa" << std::endl;

17} catch (const char* ex) {

18 std::cerr << ex << std::endl;

19}

0%
0%
0%
0%
View this question

¿En qué medida afecta la eficiencia a la corrección de un programa?

0%
0%
0%
0%
View this question

Dado el siguiente programa, ¿qué afirmación es cierta?

1#include <iostream>

 

2class test {

3public:

4 class Fallo{};

5 test(bool b) noexcept : b_{b} {}

6 ~test() noexcept(false) { if (!b_) throw Fallo(); }

7 void func() { if (!b_) throw Fallo(); }

8private:

9 bool b_;

10};

 

11int main() try

12{

13 test t(false);

14 t.func();

15 std::cout << "Fin del programa" << std::endl;

16} catch (const test::Fallo& ex) {

17 std::cerr << "Fallo detectado" << std::endl;

18}

100%
0%
0%
0%
View this question

Dado el siguiente programa, ¿que afirmación es cierta?

1#include<iostream>

 

2struct test {

3 test() noexcept {}

4 void func() { int i = 20; throw &i; }

5};

 

6int main ()

7{

8 try {

9 test t;

10 t.func();

11 } catch (const int& ex) {

12 std::cerr << "Excepción capturada" << std::endl;

13 }

14 std::cout << "Fin del programa" << std::endl;

15}

0%
0%
100%
0%
View this question