1. What is a WordPress theme?
(A) A plugin that adds security
(B) A collection of files that control website design and layout
(C) A database table for posts
(D) A media library extension
2. Which WordPress folder stores all installed themes?
(A) /wp-includes/themes/
(B) /themes/
(C) /wp-content/themes/
(D) /wp-admin/themes/
3. Which file is mandatory for every WordPress theme?
(A) functions.php
(B) style.css
(C) index.php
(D) header.php
4. Which file contains meta information (name, author, version) about a theme?
(A) functions.php
(B) theme.php
(C) style.css
(D) config.php
5. Which file is responsible for rendering the homepage in a WordPress theme?
(A) home.php
(B) front-page.php
(C) index.php
(D) Both B and C
6. Which WordPress theme file loads if no specific template is found?
(A) index.php
(B) home.php
(C) page.php
(D) archive.php
7. Which of the following is NOT part of a theme’s template hierarchy?
(A) single.php
(B) page.php
(C) post.php
(D) archive.php
8. Which WordPress file usually contains site-wide styling rules?
(A) index.php
(B) functions.php
(C) style.css
(D) header.php
9. Which file in a theme usually contains custom PHP functions?
(A) functions.php
(B) index.php
(C) page.php
(D) header.php
10. Which file displays the header section of a theme?
(A) header.php
(B) top.php
(C) nav.php
(D) menu.php
11. Which file displays the footer section of a theme?
(A) bottom.php
(B) footer.php
(C) base.php
(D) layout.php
12. Which template file is used to display a single blog post?
(A) post.php
(B) blog.php
(C) single.php
(D) page.php
13. Which template file is used to display a single page in WordPress?
(A) single.php
(B) page.php
(C) index.php
(D) content.php
14. Which template file is used for category archives?
(A) category.php
(B) archive.php
(C) taxonomy.php
(D) index.php
15. Which template file is used for tag archives?
(A) tag.php
(B) archive.php
(C) taxonomy.php
(D) index.php
16. Which file is responsible for search results in WordPress themes?
(A) search.php
(B) results.php
(C) query.php
(D) index.php
17. Which file is responsible for handling 404 errors?
(A) error.php
(B) notfound.php
(C) 404.php
(D) fail.php
18. Which file is responsible for displaying comments in WordPress?
(A) comment.php
(B) comments.php
(C) discussion.php
(D) feedback.php
19. Which file is responsible for controlling navigation menus in WordPress?
(A) menu.php
(B) nav.php
(C) header.php
(D) functions.php
20. Which file is responsible for the sidebar in a WordPress theme?
(A) sidebar.php
(B) side.php
(C) widget.php
(D) layout.php
21. The WordPress template hierarchy is used to:
(A) Load plugins
(B) Decide which template file to display
(C) Update WordPress automatically
(D) Create custom taxonomies
22. Which WordPress feature allows live editing of themes?
(A) Theme Editor
(B) Theme Customizer
(C) Appearance Manager
(D) CSS Panel
23. Which of the following is a default WordPress theme released in 2023?
(A) Twenty Twenty-One
(B) Twenty Twenty-Two
(C) Twenty Twenty-Three
(D) Twenty Nineteen
24. Which theme file is used when no other archive template matches?
(A) taxonomy.php
(B) archive.php
(C) index.php
(D) category.php
25. Which WordPress file defines a theme’s thumbnail preview in the dashboard?
(A) screenshot.png
(B) preview.png
(C) theme.png
(D) display.png
26. Which WordPress theme file can override all other templates if created?
(A) front-page.php
(B) index.php
(C) single.php
(D) archive.php
27. A child theme in WordPress is used for:
(A) Editing plugins
(B) Extending parent theme without losing updates
(C) Creating a backup
(D) Making themes responsive
28. Which file is required in every child theme?
(A) functions.php
(B) style.css
(C) index.php
(D) header.php
29. Which line in style.css defines the parent theme in a child theme?
(A) Parent: theme-name
(B) Template: theme-folder-name
(C) Inherit: theme-folder
(D) Base: parent-theme
30. Which file is commonly enqueued in functions.php to load stylesheets?
(A) wp_enqueue_script()
(B) wp_enqueue_style()
(C) load_css()
(D) add_style()
31. What is the purpose of get_header() in a theme file?
(A) Loads footer.php
(B) Loads header.php
(C) Loads sidebar.php
(D) Loads index.php
32. What is the purpose of get_footer() in a theme file?
(A) Loads footer.php
(B) Loads header.php
(C) Loads sidebar.php
(D) Loads content.php
33. What is the purpose of get_sidebar() in a theme file?
(A) Loads footer.php
(B) Loads sidebar.php
(C) Loads header.php
(D) Loads widgets.php
34. Which function is used to load the theme’s stylesheet in WordPress?
(A) get_stylesheet_uri()
(B) load_css()
(C) wp_enqueue_css()
(D) wp_style()
35. Which theme template file controls individual author archive pages?
(A) author.php
(B) archive.php
(C) taxonomy.php
(D) index.php
36. Which file is used to display custom taxonomy archives?
(A) taxonomy.php
(B) archive.php
(C) category.php
(D) tag.php
37. Which template file is used to display date-based archives?
(A) archive.php
(B) date.php
(C) calendar.php
(D) time.php
38. Which template file displays attachments like images and PDFs?
(A) attach.php
(B) media.php
(C) attachment.php
(D) single.php
39. Which function is used to add support for post thumbnails in a theme?
(A) add_theme_support(‘thumbnails’)
(B) add_post_support()
(C) add_image_feature()
(D) add_media_support()
40. Which function is used to register menus in a theme?
(A) register_theme()
(B) add_menu_support()
(C) register_nav_menus()
(D) add_menu_page()
41. Which function is used to display a registered navigation menu in a theme?
(A) wp_nav_menu()
(B) show_menu()
(C) display_menu()
(D) get_menu()
42. Which function is used to register widget areas in WordPress themes?
(A) add_widget_area()
(B) register_sidebar()
(C) wp_widget_register()
(D) sidebar_add()
43. Which theme file defines how widgets are displayed?
(A) widgets.php
(B) sidebar.php
(C) functions.php
(D) layout.php
44. Which WordPress theme type allows block-based editing?
(A) Classic Themes
(B) Block Themes (Full Site Editing)
(C) Child Themes
(D) Custom CSS Themes
45. Block themes in WordPress use which template system?
(A) PHP template hierarchy
(B) JSON-based templates
(C) Gutenberg template parts
(D) Both B and C
46. Which file defines block theme configuration in WordPress?
(A) style.css
(B) theme.json
(C) functions.php
(D) index.php
47. Which WordPress version introduced full site editing with block themes?
(A) 4.9
(B) 5.0
(C) 5.8
(D) 6.0
48. Which of the following is NOT a default WordPress theme?
(A) Twenty Fifteen
(B) Twenty Eleven
(C) Twenty Ten
(D) Twenty Nineteen Pro
49. Which WordPress admin menu is used to activate and customize themes?
(A) Plugins → Themes
(B) Settings → Themes
(C) Appearance → Themes
(D) Tools → Themes
50. Which WordPress admin menu allows editing theme files directly?
(A) Plugins → Editor
(B) Appearance → Theme File Editor
(C) Settings → Editor
(D) Tools → File Editor
