error CS1061: 'Text' does not contain a definition for 'Length' and no accessible extension method '

the error is in the line 31,29

using System.Collections;
using UnityEngine.UI;
using UnityEngine;
using System.Collections.Generic;

public class responder : MonoBehaviour {

    public Text pergunta;
    public Text respostaA;
    public Text respostaB;
    public Text respostaC;
    public Text respostaD;
    public Text infoRespostas;

    public string[] perguntas;              // armazena todas as perguntas
    public string[] alternativaA;           // armazena todas as alternativas A
    public string[] alternativaB;           // armazena todas as alternativas B
    public string[] alternativaC;           // armazena todas as alternativas C
    public string[] alternativaD;          // armazena todas as alternativas D
    public string[] corretas;             // armazena todas as alternativas corretas

    private int idPergunta;

    private float acertos;
    private float questoes;
    private float media;

    // Start is called before the first frame update
    void Start () {
        idPergunta = 0;
        questoes = pergunta.Length;

        pergunta.text = perguntas[idPergunta];
        respostaA.text = alternativaA[idPergunta];
        respostaB.text = alternativaB[idPergunta];
        respostaC.text = alternativaC[idPergunta];
        respostaD.text = alternativaD[idPergunta];

    }

    // Update is called once per frame
    void Update() {

    }
}

‘Text’ is a UI Text component. It has no length.
It does have a .text property, which has a .length property

so what should i put?

You should put whatever you want the computer to do.

Computers are like evil genies: they’ll grant your wishes, but you better phrase them exactly right, because the computer is going to do exactly what you said (no matter how stupid or ridiculous that was), not what you meant.

Step #1: Figure out what you actually meant.

My guess is that you meant perguntas.Length, with an “s” at the end. (Maybe you should make your variable names more different than that.) But only you can really answer what you meant.