Create New Post

CodeIgniter MCQs with answer part - 10

  1. What is the purpose of CodeIgniter's Typography class?
  • A) To manage user authentication
  • B) To handle form submissions
  • C) To format text for better readability
  • D) To compress files into ZIP format

Answer: C) To format text for better readability

  1. How do you load the Typography class in a CodeIgniter controller?
  • A) $this->load->library('typography')
  • B) $this->typography->load()
  • C) $this->typography->library('typography')
  • D) $this->library('typography')

Answer: A) $this->load->library('typography')

  1. Which method is used to format text using CodeIgniter's Typography class?
  • A) format_text()
  • B) apply()
  • C) parse()
  • D) format()

Answer: D) format()

  1. What is the purpose of CodeIgniter's FTP class?
  • A) To manage user authentication
  • B) To handle FTP file transfers
  • C) To compress files into ZIP format
  • D) To generate HTML forms

Answer: B) To handle FTP file transfers

  1. How do you load the FTP class in a CodeIgniter controller?
  • A) $this->load->library('ftp')
  • B) $this->ftp->load()
  • C) $this->ftp->library('ftp')
  • D) $this->library('ftp')

Answer: A) $this->load->library('ftp')

  1. Which method is used to connect to an FTP server in CodeIgniter's FTP class?
  • A) connect()
  • B) open()
  • C) login()
  • D) connect_server()

Answer: C) login()

  1. What is the purpose of CodeIgniter's Calendar class?
  • A) To manage user authentication
  • B) To handle form submissions
  • C) To generate HTML calendars
  • D) To compress files into ZIP format

Answer: C) To generate HTML calendars

  1. How do you load the Calendar class in a CodeIgniter controller?
  • A) $this->load->library('calendar')
  • B) $this->calendar->load()
  • C) $this->calendar->library('calendar')
  • D) $this->library('calendar')

Answer: A) $this->load->library('calendar')

  1. Which method is used to initialize the Calendar class in CodeIgniter?
  • A) initialize()
  • B) setup()
  • C) config()
  • D) initialize_calendar()

Answer: A) initialize()

  1. What is the purpose of CodeIgniter's Pagination library?
     A) To handle form submissions
     B) To manage user authentication  
    C) To split large sets of data into multiple pages  
    D) To compress files into ZIP format
    Answer: C) To split large sets of data into multiple pages**
     

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

69927