
UNIT 2
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
pratibha Patil
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which of the following is the correct syntax for setting a specific bit in an I/O port register in embedded C?
PORTx |= (1 << 3);
PORTx &= ~(1 << 3);
PORTx = (1 << 3);
PORTx |= (1 << 0);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In embedded C programming, how do you clear a bit (set it to 0) in an I/O port register?
PORTx |= (1 << 3);
PORTx &= ~(1 << 3);
PORTx = (1 << 3);
PORTx ^= (1 << 3);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code in embedded C: PORTB |= (1 << PB2);?
It clears the bit 2 of PORTB.
It sets the bit 2 of PORTB.
It toggles the bit 2 of PORTB.
It does nothing to PORTB.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which I/O direction mode do the I/O pins act as input in a microcontroller?
Output mode
Input mode
Floating mode
Tri-state mode
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of a Timer/Counter in embedded systems?
To generate PWM signals.
To create delays and manage timing events.
To control the direction of data flow in I/O ports.
To perform analog-to-digital conversions.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
n embedded C, to set the value of the timer for a 1-second delay with an 8-bit timer, assuming a 16 MHz clock and a prescaler of 256, the value of the timer register should be set to:
0x00
0xF4
0x02
0xFF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you stop the Timer in most embedded systems?
Set the timer's prescaler to zero.
Clear the timer enable bit.
Reset the timer register.
Disable the interrupt associated with the timer.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
MPU&MCU Quiz 1
Quiz
•
University
10 questions
Snap! Sensores y Colisión
Quiz
•
University
11 questions
ransferencia de calor en estado transitorio (No estacionario) de
Quiz
•
University
10 questions
Recap of Sessions 22 & 23
Quiz
•
11th Grade - University
10 questions
Quiz on Computer Architecture
Quiz
•
University
14 questions
Computer Architecture Quiz
Quiz
•
University
15 questions
Tce Code War
Quiz
•
University
10 questions
Surveying I Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
