Gramática: B. Los verbos irregulares del pretérito: Cuidando a mi prima Gloria. One day, Gregorio’s aunt and uncle needed him to babysit his little cousin Gloria. Help him retell his story of that day by first choosing the correct verb to complete the sentence, and then typing the correct preterit form of that verb in the blank. (2 pts. each: 1 pt. correct verb, 1 pt. correct preterit form; 28 pts. total) MODELO: Hace dos semanas que hubo un huracán en Florida. (haber, ser, ir, venir) Un día mis padres me (1)[1](tener, decir, poner, ver) que yo (2)[2](tener, dar, poder, traer) que cuidar a mi prima, Gloria. Ese día yo (3)[3](hacer, ser, saber, querer) que es difícil cuidar a una chica de 5 años. Gloria (4)[4](venir, haber, ir, hacer) muchas actividades ese día. Primero, ella (5)[5](querer, ir, saber, dar) a su clase de baile. Luego, volvimos a casa a almorzar. Entonces, yo le (6)[6](decir, hacer, estar, poder) el almuerzo: un sándwich de jamón y queso, y papas. ¿Fácil no? Pero no, ella insistió en postre. Ella me (7)[7](ser, ir, traer, ver) una receta para galletas, pero en el refrigerador no encontramos huevos. Así que nosotros (8)[8](querer, poner, poder, ir) al supermercado y los compramos. Regresamos a casa otra vez, y empezamos a hacer las galletas. Ella (9)[9](querer, hacer, traer, ver) calentar el horno, yo le grité, ¡no! ¡es peligroso (dangerous)! Gloria me (10)[10](ser, ir, dar, ver) los huevos, la mantequilla y los otros ingredientes. Mezclamos todo y horneamos las galletas. Las galletas (11)[11](poder, traer, ser, estar) en el horno por 10 minutos, y luego las sacamos. Nosotros no (12)[12](poner, poder, hacer, ser) comerlas inmediatamente por estar tan calientes. ¡Qué lástima! Por fin, nos sentamos en el sofá y (13)[13](ver, venir, saber, ir) un programa en la televisión mientras comíamos las galletas. Cuando sus padres llegaron esa noche, yo (14)[14](ponerse, hacer, tener, querer) contento al verlos, en serio.
Blog
Which nutrient(s) is/are critical for bone health? Select al…
Which nutrient(s) is/are critical for bone health? Select all that apply.
Write an interface called Reversible. The interface should h…
Write an interface called Reversible. The interface should have one method called reverse that has no parameters and doesn’t return a value. Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers.
Which class can be used to read a file?
Which class can be used to read a file?
Shared Instructions Indicate the result of the snippet of co…
Shared Instructions Indicate the result of the snippet of code, assuming that it is in a main method of a class. More specifically, you must indicate one of the following: the output of the code, if the code compiles and runs without errors which statement(s) don’t compile (line #s, first line is #1) and why, if the code doesn’t compile when put in a main method the type of runtime error and the statement that caused it (line #, first line is #1) if the code compiles but doesn’t run properly Shared Code public class Foo { public String method1() { return “foo 1”; } public String method2() { return “foo 2”; }}public class Bar extends Foo { public String method3() { return “bar 3”; }}public class Baz extends Bar { public String method1() { return “baz 1”; }}public class Mumble extends Foo { public String method2() { return “mumble 2”; }} Unique Snippet Mumble m = new Mumble();Foo f = (Foo) m;System.out.print(f.method1() + ((Bar) f).method2());
Indicate the Big-O notation and growth rate for the followin…
Indicate the Big-O notation and growth rate for the following algorithms: selection sort, insertion sort, merge sort. Use this template for your answer (please type fully – you cannot copy): Selection Sort: [Big-O notation], [growth rate] Insertion Sort: [Big-O notation], [growth rate] Merge Sort: [Big-O notation], [growth rate]
Write code for a public static method named numLinesWithPref…
Write code for a public static method named numLinesWithPrefix. The method receives a File and a String and returns an int: the number of lines in the file that start with the input String. If there is an error reading the file, the method should propagate an IOException. You must use exception handling code; you cannot use File methods or Scanner hasX methods directly. Make sure to close every object that should be closed before returning. Don’t write import statements or a class header. As part of error handling, use the Scanner’s NoSuchElementException. HINT: use String’s instance method startsWith(String prefix). Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers
Shared Instructions Indicate the result of the snippet of co…
Shared Instructions Indicate the result of the snippet of code, assuming that it is in a main method of a class. More specifically, you must indicate one of the following: the output of the code, if the code compiles and runs without errors which statement(s) don’t compile (line #s, first line is #1) and why, if the code doesn’t compile when put in a main method the type of runtime error and the statement that caused it (line #, first line is #1) if the code compiles but doesn’t run properly Shared Code public class Foo { public String method1() { return “foo 1”; } public String method2() { return “foo 2”; }}public class Bar extends Foo { public String method3() { return “bar 3”; }}public class Baz extends Bar { public String method1() { return “baz 1”; }}public class Mumble extends Foo { public String method2() { return “mumble 2”; }} Unique Snippet Object o = new Bar();String s = ((Bar) o).method1();System.out.print(s);
[2pts EXTRA CREDIT] State if O(log(n2)) is equal to O(log(n)…
[2pts EXTRA CREDIT] State if O(log(n2)) is equal to O(log(n)). If it is, explain why. If not, which is more efficient? (1-2 sentences)
Upcasting in Java is only sometimes valid, depending on what…
Upcasting in Java is only sometimes valid, depending on what the object is being cast to.