Success Primer Exam 2026 Question Set
Predict the output: var x = 5 ^ "0"; document.write(parseInt(x));
JavaScript coerces "0" to 0 for bitwise operations. 5 XOR 0 equals 5.
Which command is used to find out the version of jquery?
$.ui.version is the property specifically for the jQuery UI library version.
1Predict the output of the program: public class Test { public static void main(String[] args) { int n, temp = 0; int[] num_ar = new int[]{49, 56, 23, 16, 9, 34}; int[] temp_ar = new int[num_ar.length]; for(int i=0; i<num_ar.length; i++) { temp_ar[i] = num_ar[i]; } for(int i=0; i<num_ar.length; i++) { for(int j=0; j<num_ar.length; j++) { if(temp_ar[i] < temp_ar[j]) { temp = temp_ar[i]; temp_ar[i] = temp_ar[j]; temp_ar[j] = temp; } } } for(int i=0; i<num_ar.length; i++) { for(int j=0; j<num_ar.length; j++) { if(temp_ar[i] == num_ar[j]) { System.out.print(j + " "); } } } } }
The code sorts elements ascending and prints their original indices in num_ar.
1Predict the output of the program: public class JavaIntroduction { String name; int id; double salary; JavaIntroduction(String name, int id, double salary) { this.name = name; this.id = id; this.salary = salary; } JavaIntroduction(JavaIntroduction s) { id = s.id; name = s.name; salary = s.salary; } void display() { System.out.println(name + " " + id + " " + salary); } public static void main(String[] args) { JavaIntroduction s1 = new JavaIntroduction("Harish", 256, 120000); JavaIntroduction s2 = new JavaIntroduction(s1); s1.display(); s2.display(); } }
Demonstrates a copy constructor copying field values from s1 to s2.
Which of the following options are invalid variable names in Java?
Java variables cannot start with a number or use reserved keywords like 'case'.
How can we find the length of a string in Java?
In Java, String length is retrieved via the length() method.
Which AWS service provides scalable cloud storage with a pay-as-you-go pricing model?
Amazon S3 is an object storage service built for high scalability and cost-efficiency.
What AWS service provides a fully managed and scalable container orchestration service?
Amazon ECS is a managed service used to run and scale containerized applications.
Which AWS service provides virtual servers in the cloud?
EC2 stands for Elastic Compute Cloud, providing virtualized processing power.
Which AWS service is designed for data warehousing and business intelligence applications?
Redshift is a high-performance data warehouse service for large-scale analytics.
What does AWS IAM primarily help you manage?
IAM is used to manage identities and restrict resource access.
In AWS, what is the key difference between an EC2 instance store and Amazon EBS?
Instance store data is lost when instance is stopped/terminated; EBS data is persistent.
Which two statements are equivalent? 1. 16*4 2. 16>>2 3. 16/2^2 4. 16>>>2
Both signed (>>) and unsigned (>>>) right shifts of 16 by 2 bits result in 4.
In language like C, we are able to assign a char value to int and also a float value to int without doing explicit conversion. This property is termed as _______.
Weakly typed languages allow implicit type conversions without explicit casting by the programmer.
Which technology underlies the functionality of generative AI models like GPT-3?
Generative AI models like GPT-3 are based on transformer architectures, a type of deep neural network.
Which statement is true about dataset requirements for effective generative AI training?
Diversity prevents bias and allows the model to generalize better across different prompts.
What is a current limitation of generative AI models?
AI requires human oversight to correct hallucinations and ensure factual accuracy.
Which keyword is used to retrieve unique values in a SELECT statement in MySQL SQL?
DISTINCT is the standard SQL keyword for removing duplicate rows from a result set.
_______ is the type of JOIN which join the table with itself.
A self join allows a table to be joined with itself, often used for hierarchical data.
Which query will delete the records of customers who ordered more than one item?
Uses a correlated subquery to identify customers with multiple entries in the Orders table.
Based on our question bank analysis, master these concepts to score high in Practice Set 2.