Microcontroller-Chapter 2 (Part 1)

Microcontroller-Chapter 2 (Part 1)

University

10 Qs

quiz-placeholder

Similar activities

QUIZ GAME

QUIZ GAME

University

10 Qs

การพัฒนาหรือสร้างสรรผลิตภัณฑ์ IoT

การพัฒนาหรือสร้างสรรผลิตภัณฑ์ IoT

University

10 Qs

computer Networks

computer Networks

University

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Structured/Traditional SDM

Structured/Traditional SDM

University

9 Qs

Process modeling

Process modeling

University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

Microcontroller-Chapter 2 (Part 1)

Microcontroller-Chapter 2 (Part 1)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Wany Zamani

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct symbol used for multiple-line comments in C?

// comment //

/* comment */

# comment #

-- comment --

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement best describes the use of multiple-line comments in C?

They are used only at the beginning of the program.

They provide a deeper explanation and can span several lines.

They must always appear after a return statement.

They are automatically converted into documentation files.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the TRIS register in a PIC microcontroller?

To store data temporarily in memory

To set the clock frequency of the microcontroller

To enable or disable interrupts

To control whether each pin in a PORT is input or output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly describes the effect of setting TRISB = 0x00; in a PIC microcontroller?

All pins of PORTB are configured as input.

All pins of PORTA are configured as input.

All pins of PORTA are configured as output.

All pins of PORTB are configured as output.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function of an ADC (Analogue-to-Digital Converter) in a PIC microcontroller?

To convert digital signals into analogue signals

To convert analogue signals into digital signals

To amplify analogue signals

To generate analogue signals from sensors

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of the instruction ADCON0 = 0x00; in a PIC program?

It turns the ADC on.

It sets all PORTA pins as analogue.

It turns the ADC off.

It converts all bits to input mode.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which register controls the internal oscillator block in a PIC microcontroller?

T0CON

ADCON0

OSCCON

OPTION_REG

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?