midterm exam. compro (part2)

Quiz
•
Computers
•
University
•
Medium
Watcharin Tangsuksant
Used 5+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
A program that displays 2n.
Choose the best answer for blank (b).
m = 2*i;
m = 2^n;
m *= 2;
m *= i;
Skip
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Find the output shown on the screen from this program.
97531
13579
95173
1
Skip
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The electrical current I (A) is calculated by I = V/R
where V is the voltage (V) and R is the resistance (Ω). By varying the resistance from 1 Ω to 5 Ω, find the current when the voltage is 1 V. Complete the for statement as shown in the image.
Choose the best answer for blank (a).
R = 0; R < 1.0; R++
R = 0; R <= 5; R++
R = 0; R < 6; R++
R = 1.0; R < 6.0; R++
Skip
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The electrical current I (A) is calculated by
I = V/R
where V is the voltage (V) and R is the resistance (Ω). By varying the resistance from 1 Ω to 5 Ω, find the current when the voltage is 1 V. Complete the for statement.
Choose the best answer for blank (b).
I = 1.0/R;
I = 0.1/R;
I = 5/R;
I = 1.0;
Skip
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Find the last value of u when the loop end
1
3
5
7
Skip
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following C code?
In for loop After loop
After loop
5
Compile time error
Skip
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The program displays a multiplication table and allows the user to specify the size of the table. Complete the missing parts of the program.
Choose the best answer for blank (a).
i=1; i<12; i++
n=1; n<=i; n++
i=1; i<=n; i++
i=1; i<n; i+=2
Skip
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Array and Loops in C#

Quiz
•
University
20 questions
Day 2 Quiz 1

Quiz
•
University
23 questions
Data Structures and Algorithms Quiz - BATCH 1

Quiz
•
University
20 questions
21st Century Success Skills Exam

Quiz
•
8th Grade - University
22 questions
CSC134 Chapter 7

Quiz
•
University
20 questions
Unit II and IV

Quiz
•
University
25 questions
Compro. Final1/64 part2

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University