Neither of those answers prompt the user. Prompting the user is a print statement telling the using what to enter.
Scanner console = new Scanner(System.in);
System.out.print("Enter quiz score: "); // this is the prompt
int score = console.nextInt(): //this reads a token from the input stream storing it an int into the variable score