MCQs on Advanced Scripting Techniques | Qlikview MCQ Questions

Enhance your QlikView scripting skills with these 30 multiple-choice questions on advanced ETL operations, set analysis, variables, script control, and debugging techniques for complex QlikView applications.


Advanced ETL Operations

  1. In QlikView, what is the purpose of the “Concatenate” statement in an ETL process?
    • a) To combine fields from different tables into one
    • b) To append data from multiple tables into a single table
    • c) To split data into separate fields
    • d) To perform aggregation
  2. Which QlikView command is used to load data from a CSV file into the application?
    • a) LOAD
    • b) SELECT
    • c) CONNECT
    • d) IMPORT
  3. How does the “Resident” load operation in QlikView work?
    • a) It loads data from an external database
    • b) It loads data from a previously loaded table in memory
    • c) It loads data from a CSV file
    • d) It appends data to a table
  4. What does the “Drop Table” command do in QlikView?
    • a) Deletes a table from the data model
    • b) Drops the columns from a table
    • c) Clears all data from a table
    • d) Renames the table
  5. What is the function of the “Join” statement in QlikView’s ETL process?
    • a) Combines data from different sources into one table
    • b) Aggregates data from multiple tables
    • c) Filters data based on a condition
    • d) Groups data into categories
  6. Which of the following QlikView commands is used to load a table from an Excel file?
    • a) EXCEL LOAD
    • b) LOAD FROM XLSX
    • c) LOAD * FROM Excel File
    • d) No specific command; QlikView automatically handles it
  7. The “ApplyMap” function in QlikView is used to:
    • a) Transform data into different formats
    • b) Create new fields based on existing data
    • c) Map values from one table to another
    • d) Remove duplicates
  8. What is the purpose of the “Autogenerate” keyword in QlikView scripts?
    • a) To generate data from an external source
    • b) To create a specified number of records automatically
    • c) To load predefined records
    • d) To define new fields
  9. Which command can be used to optimize the ETL process in QlikView by reducing the amount of data loaded?
    • a) WHERE
    • b) SELECT DISTINCT
    • c) Keep
    • d) DROP
  10. What does the “FOR Each” loop do in QlikView scripting?
    • a) Iterates over a list of files or values
    • b) Executes a conditional statement repeatedly
    • c) Loads data based on conditions
    • d) Joins multiple data tables

Set Analysis and Data Filtering

  1. What is the primary purpose of Set Analysis in QlikView?
    • a) To aggregate data based on a fixed condition
    • b) To manipulate the structure of the data model
    • c) To perform advanced data transformations
    • d) To join multiple data tables
  2. Which operator is used in Set Analysis to define the set of values for filtering?
    • a) =
    • b) =>
    • c) $
    • d) { }
  3. In Set Analysis, how do you exclude specific data from a set?
    • a) Using the NOT operator
    • b) Using the IS operator
    • c) Using the AND operator
    • d) Using the OR operator
  4. Which of the following Set Analysis expressions is used to calculate the sum of sales for the current year?
    • a) Sum({$<Year = {“2024”}>} Sales)
    • b) Sum({$<Year = “2024”>} Sales)
    • c) Sum(Sales)
    • d) Sum(Sales, Year)
  5. What does the dollar sign expansion ($) in Set Analysis do?
    • a) Expands the current selection context
    • b) Filters data based on specific criteria
    • c) Defines a fixed condition for the analysis
    • d) Converts data into a string format
  6. How can you use Set Analysis to ignore certain selections?
    • a) Using the ignore selection function
    • b) Using the $ symbol for dollar sign expansion
    • c) By writing an explicit filter condition
    • d) Using the exclude keyword
  7. Which of the following is the correct syntax for using Set Analysis with a date range?
    • a) Sum({$<DateField = {“01/01/2023”}>} Sales)
    • b) Sum({$<DateField >= “01/01/2023”} Sales)
    • c) Sum({$<DateField <= “01/01/2023”} Sales)
    • d) Sum({$<DateField = {“01/01/2023…01/31/2023”}>} Sales)
  8. In QlikView, which symbol is used to reference fields within the Set Analysis expression?
    • a) &
    • b) $
    • c) { }
    • d) #
  9. How can you use Set Analysis to calculate the sum of sales excluding data from a specific product category?
    • a) Sum({$<ProductCategory – {“Electronics”}>} Sales)
    • b) Sum({$<ProductCategory = {“Electronics”}>} Sales)
    • c) Sum({$<ProductCategory <> “Electronics”}>} Sales)
    • d) Sum({$<ProductCategory {“Electronics”}>} Sales)
  10. Which of the following represents a valid Set Analysis expression to get the total sales for the previous year?
    • a) Sum({$<Year = {“$Year-1”}>} Sales)
    • b) Sum({$<Year = {“2023”}>} Sales)
    • c) Sum({$<Year = {“-1”}>} Sales)
    • d) Sum({$<Year = {“Previous”}>} Sales)

Variables and Script Control Statements

  1. What is the role of variables in QlikView scripting?
    • a) To store values for dynamic calculation and conditional statements
    • b) To transform data during loading
    • c) To filter data directly
    • d) To generate new data fields
  2. How do you declare a variable in QlikView?
    • a) SET variable_name = value;
    • b) VARIABLE variable_name = value;
    • c) VAR variable_name := value;
    • d) DECLARE variable_name = value;
  3. In QlikView scripting, which control statement is used to repeat a block of code multiple times?
    • a) IF-THEN
    • b) FOR EACH
    • c) WHILE
    • d) CASE
  4. What is the purpose of the “LET” statement in QlikView scripting?
    • a) To define a variable with dynamic values
    • b) To assign values to fields in the data model
    • c) To load data from external sources
    • d) To call external scripts
  5. What does the “IF” statement in QlikView scripting allow you to do?
    • a) Execute code based on a specific condition
    • b) Merge tables
    • c) Create new fields
    • d) Load data from multiple sources
  6. How can you ensure that a variable’s value can change dynamically in QlikView?
    • a) Use the SET statement
    • b) Use the LET statement
    • c) Use the APPLY function
    • d) Use the DO function
  7. Which of the following is a method to avoid overwriting existing variable values in QlikView?
    • a) Use the LET statement
    • b) Use the SET statement
    • c) Use the IF statement
    • d) Use the variable guard
  8. What does the “EXIT Script” command do in QlikView?
    • a) Stops the script execution
    • b) Exits the application
    • c) Stops data loading
    • d) Closes the QlikView session
  9. In QlikView scripting, which control statement allows you to create a loop that runs indefinitely?
    • a) FOR
    • b) LOOP
    • c) WHILE
    • d) REPEAT
  10. How can you define a condition that checks if a field value is null in QlikView scripting?
    • a) IF FieldName = NULL THEN
    • b) IF ISNULL(FieldName) THEN
    • c) IF NOT FieldName THEN
    • d) IF NULL(FieldName) THEN

Answer Key

QnoAnswer (Option with Text)
1b) To append data from multiple tables into a single table
2a) LOAD
3b) It loads data from a previously loaded table in memory
4a) Deletes a table from the data model
5a) Combines data from different sources into one table
6d) No specific command; QlikView automatically handles it
7c) Map values from one table to another
8b) To create a specified number of records automatically
9a) WHERE
10a) Iterates over a list of files or values
11a) To aggregate data based on a fixed condition
12d) { }
13a) Using the NOT operator
14a) Sum({$<Year = {“2024”}>} Sales)
15a) Expands the current selection context
16a) Using the ignore selection function
17b) Sum({$<DateField >= “01/01/2023”} Sales)
18b) $
19c) Sum({$<ProductCategory <> “Electronics”}>} Sales)
20b) Sum({$<Year = {“2023”}>} Sales)
21a) To store values for dynamic calculation and conditional statements
22a) SET variable_name = value;
23b) FOR EACH
24a) To define a variable with dynamic values
25a) Execute code based on a specific condition
26b) Use the LET statement
27b) Use the SET statement
28a) Stops the script execution
29c) WHILE
30b) IF ISNULL(FieldName) THEN

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top